How to install Keras and Tensorflow on Windows 8.1

Hello. I'm trying to install keras and tensorflow packages in R, but everytime I do this I experience problems and difficulties and,finally, fail.

First, I do: install.packages ("keras")

I get:

`Installing package into ‘C:/Users/user/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/keras_2.3.0.0.zip'
Content type 'application/zip' length 2488234 bytes (2.4 MB)
downloaded 2.4 MB

package ‘keras’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\user\AppData\Local\Temp\Rtmp69aGND\downloaded_packages`

Second, library(keras)

Third, install_keras()

After this I usually get the following:

Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done

# All requested packages already installed.

Requirement already up-to-date: tensorflow==2.2.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (2.2.0)
Requirement already up-to-date: keras in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (2.4.3)
Requirement already up-to-date: tensorflow-hub in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (0.9.0)
Requirement already up-to-date: h5py in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (2.10.0)
Requirement already up-to-date: pyyaml==3.12 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (3.12)
Requirement already up-to-date: requests in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (2.24.0)
Requirement already up-to-date: Pillow in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (7.2.0)
Collecting scipy
  Using cached scipy-1.5.2-cp36-cp36m-win_amd64.whl (31.2 MB)
Requirement already satisfied, skipping upgrade: keras-preprocessing>=1.1.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.1.2)
Requirement already satisfied, skipping upgrade: grpcio>=1.8.6 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.32.0)
Requirement already satisfied, skipping upgrade: protobuf>=3.8.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (3.13.0)
Requirement already satisfied, skipping upgrade: termcolor>=1.1.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.1.0)
Requirement already satisfied, skipping upgrade: tensorboard<2.3.0,>=2.2.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (2.2.2)
Requirement already satisfied, skipping upgrade: numpy<2.0,>=1.16.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.19.1)
Requirement already satisfied, skipping upgrade: google-pasta>=0.1.8 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (0.2.0)
Requirement already satisfied, skipping upgrade: wrapt>=1.11.1 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.12.1)
Requirement already satisfied, skipping upgrade: astunparse==1.6.3 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.6.3)
Requirement already satisfied, skipping upgrade: absl-py>=0.7.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (0.10.0)
Requirement already satisfied, skipping upgrade: gast==0.3.3 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (0.3.3)
Requirement already satisfied, skipping upgrade: six>=1.12.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.15.0)
Requirement already satisfied, skipping upgrade: wheel>=0.26; python_version >= "3" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (0.35.1)
Requirement already satisfied, skipping upgrade: tensorflow-estimator<2.3.0,>=2.2.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (2.2.0)
Requirement already satisfied, skipping upgrade: opt-einsum>=2.3.2 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (3.3.0)
Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests) (3.0.4)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests) (2.10)
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests) (1.25.10)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests) (2020.6.20)
Requirement already satisfied, skipping upgrade: setuptools in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from protobuf>=3.8.0->tensorflow==2.2.0) (49.6.0.post20200917)
Requirement already satisfied, skipping upgrade: werkzeug>=0.11.15 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.0.1)
Requirement already satisfied, skipping upgrade: markdown>=2.6.8 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.2.2)
Requirement already satisfied, skipping upgrade: google-auth<2,>=1.6.3 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.22.0)
Requirement already satisfied, skipping upgrade: tensorboard-plugin-wit>=1.6.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.7.0)
Requirement already satisfied, skipping upgrade: google-auth-oauthlib<0.5,>=0.4.1 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (0.4.1)
Requirement already satisfied, skipping upgrade: importlib-metadata; python_version < "3.8" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from markdown>=2.6.8->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (2.0.0)
Requirement already satisfied, skipping upgrade: pyasn1-modules>=0.2.1 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (0.2.8)
Requirement already satisfied, skipping upgrade: rsa<5,>=3.1.4; python_version >= "3.5" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (4.6)
Requirement already satisfied, skipping upgrade: cachetools<5.0,>=2.0.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (4.1.1)
Requirement already satisfied, skipping upgrade: aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.6.2)
Requirement already satisfied, skipping upgrade: requests-oauthlib>=0.7.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.3.0)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from importlib-metadata; python_version < "3.8"->markdown>=2.6.8->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.2.0)
Requirement already satisfied, skipping upgrade: pyasn1<0.5.0,>=0.4.6 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (0.4.8)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (20.2.0)
Requirement already satisfied, skipping upgrade: async-timeout<4.0,>=3.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.0.1)
Requirement already satisfied, skipping upgrade: yarl<2.0,>=1.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.6.0)
Requirement already satisfied, skipping upgrade: multidict<5.0,>=4.5 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (4.7.6)
Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.5; python_version < "3.7" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.7.4.3)
Requirement already satisfied, skipping upgrade: idna-ssl>=1.0; python_version < "3.7" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.1.0)
Requirement already satisfied, skipping upgrade: oauthlib>=3.0.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.1.0)
Installing collected packages: scipy
  Attempting uninstall: scipy
    Found existing installation: scipy 1.4.1
    Uninstalling scipy-1.4.1:
      Successfully uninstalled scipy-1.4.1
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

tensorflow 2.2.0 requires scipy==1.4.1; python_version >= "3", but you'll have scipy 1.5.2 which is incompatible.
Successfully installed scipy-1.5.2

Installation complete.

But when I type is_keras_available() I always get FALSE.

Moreover, when I try to do to_categorical(0:3) I always get:

Error: Installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:
 C:\Users\user\AppData\Local\r-miniconda\envs\r-reticulate\python.exe

You can install TensorFlow using the install_tensorflow() function.

So, I start installing tensorflow:

Installing package into ‘C:/Users/user/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tensorflow_2.2.0.zip'
Content type 'application/zip' length 144925 bytes (141 KB)
downloaded 141 KB

package ‘tensorflow’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\user\AppData\Local\Temp\Rtmp4calkb\downloaded_packages

Then library(tensorflow) and install_tensorflow():

Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done

# All requested packages already installed.

Requirement already up-to-date: tensorflow==2.2.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (2.2.0)
Requirement already satisfied, skipping upgrade: protobuf>=3.8.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (3.13.0)
Requirement already satisfied, skipping upgrade: opt-einsum>=2.3.2 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (3.3.0)
Collecting scipy==1.4.1; python_version >= "3"
  Using cached scipy-1.4.1-cp36-cp36m-win_amd64.whl (30.8 MB)
Requirement already satisfied, skipping upgrade: numpy<2.0,>=1.16.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.19.1)
Requirement already satisfied, skipping upgrade: gast==0.3.3 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (0.3.3)
Requirement already satisfied, skipping upgrade: absl-py>=0.7.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (0.10.0)
Requirement already satisfied, skipping upgrade: tensorboard<2.3.0,>=2.2.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (2.2.2)
Requirement already satisfied, skipping upgrade: grpcio>=1.8.6 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.32.0)
Requirement already satisfied, skipping upgrade: wheel>=0.26; python_version >= "3" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (0.35.1)
Requirement already satisfied, skipping upgrade: tensorflow-estimator<2.3.0,>=2.2.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (2.2.0)
Requirement already satisfied, skipping upgrade: astunparse==1.6.3 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.6.3)
Requirement already satisfied, skipping upgrade: six>=1.12.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.15.0)
Requirement already satisfied, skipping upgrade: keras-preprocessing>=1.1.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.1.2)
Requirement already satisfied, skipping upgrade: wrapt>=1.11.1 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.12.1)
Requirement already satisfied, skipping upgrade: termcolor>=1.1.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (1.1.0)
Requirement already satisfied, skipping upgrade: google-pasta>=0.1.8 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (0.2.0)
Requirement already satisfied, skipping upgrade: h5py<2.11.0,>=2.10.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorflow==2.2.0) (2.10.0)
Requirement already satisfied, skipping upgrade: setuptools in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from protobuf>=3.8.0->tensorflow==2.2.0) (49.6.0.post20200917)
Requirement already satisfied, skipping upgrade: google-auth<2,>=1.6.3 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.22.0)
Requirement already satisfied, skipping upgrade: markdown>=2.6.8 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.2.2)
Requirement already satisfied, skipping upgrade: tensorboard-plugin-wit>=1.6.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.7.0)
Requirement already satisfied, skipping upgrade: werkzeug>=0.11.15 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.0.1)
Requirement already satisfied, skipping upgrade: google-auth-oauthlib<0.5,>=0.4.1 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (0.4.1)
Requirement already satisfied, skipping upgrade: requests<3,>=2.21.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (2.24.0)
Requirement already satisfied, skipping upgrade: aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.6.2)
Requirement already satisfied, skipping upgrade: rsa<5,>=3.1.4; python_version >= "3.5" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (4.6)
Requirement already satisfied, skipping upgrade: pyasn1-modules>=0.2.1 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (0.2.8)
Requirement already satisfied, skipping upgrade: cachetools<5.0,>=2.0.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (4.1.1)
Requirement already satisfied, skipping upgrade: importlib-metadata; python_version < "3.8" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from markdown>=2.6.8->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (2.0.0)
Requirement already satisfied, skipping upgrade: requests-oauthlib>=0.7.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.3.0)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (2.10)
Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.0.4)
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.25.10)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (2020.6.20)
Requirement already satisfied, skipping upgrade: idna-ssl>=1.0; python_version < "3.7" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.1.0)
Requirement already satisfied, skipping upgrade: attrs>=17.3.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (20.2.0)
Requirement already satisfied, skipping upgrade: yarl<2.0,>=1.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (1.6.0)
Requirement already satisfied, skipping upgrade: multidict<5.0,>=4.5 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (4.7.6)
Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.5; python_version < "3.7" in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.7.4.3)
Requirement already satisfied, skipping upgrade: async-timeout<4.0,>=3.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from aiohttp<4.0.0dev,>=3.6.2; python_version >= "3.6"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.0.1)
Requirement already satisfied, skipping upgrade: pyasn1>=0.1.3 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from rsa<5,>=3.1.4; python_version >= "3.5"->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (0.4.8)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from importlib-metadata; python_version < "3.8"->markdown>=2.6.8->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.2.0)
Requirement already satisfied, skipping upgrade: oauthlib>=3.0.0 in c:\users\user\appdata\local\r-mini~1\envs\r-reti~1\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow==2.2.0) (3.1.0)
Installing collected packages: scipy
  Attempting uninstall: scipy
    Found existing installation: scipy 1.5.2
    Uninstalling scipy-1.5.2:
      Successfully uninstalled scipy-1.5.2
Successfully installed scipy-1.4.1

Installation complete.

Then I again try to_categorical(0:3) and receive:

Error: Installation of TensorFlow not found.

Python environments searched for 'tensorflow' package:
 C:\Users\user\AppData\Local\r-miniconda\envs\r-reticulate\python.exe

You can install TensorFlow using the install_tensorflow() function.

Hovewer, system has already notified me about succesful tensorflow installation.

Could you, please, help me with this problem? I've been struggling with it for several days and haven't found any full solution on any web source.

Hello. I fail everytime I try to install Keras and Tensorflow in R 4.0.2. I have found a website, where the installation process is described in detail: https://medium.com/datadriveninvestor/how-to-setup-keras-and-tensorflow-in-rstudio-on-windows-d0175e9a8f10

On this website I have stopped at part 3: I don't understand where I should run pip install tensorlflow and pip install keras . In Jupyter Notebook the installation process doesn't come to and end. When I do the same in Spyder I always receive the following text:

  File "C:\Users\user\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3267, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-1-55fe5a7ae02f>", line 1, in <module>
    runfile('C:/Users/user/Downloads/Python.py', wdir='C:/Users/user/Downloads')

  File "C:\Users\user\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile
    execfile(filename, namespace)

  File "C:\Users\user\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "C:/Users/user/Downloads/Python.py", line 8
    python -m pip install [tensorflow]
                ^
SyntaxError: invalid syntax

And again, the installation process is never been finished.
Could you, please, tell or show me, where I should run these commands?
Thank you for your help.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

Hello,

This can be painful sometimes. Have a look here and see if this advice helps: https://github.com/rstudio/keras/issues/1106 ?