Contents

1
2 R
3
4 願屋
5


1 #

  • Windows 10
  • anaconda襦 れ

2 R #

library(tensorflow)
install_tensorflow()

3 #


rstudio れ 覦
> install_tensorflow()

Remove all packages in environment C:\ANACON~1\envs\r-tensorflow:


## Package Plan ##

  environment location: C:\ANACON~1\envs\r-tensorflow


The following packages will be REMOVED:

  ca-certificates-2019.1.23-0
  certifi-2018.11.29-py37_0
  openssl-1.1.1b-he774522_0
  pip-19.0.3-py37_0
  python-3.7.2-h8c8aaf0_10
  setuptools-40.8.0-py37_0
  sqlite-3.26.0-he774522_0
  vc-14.1-h0510ff6_4
  vs2015_runtime-14.15.26706-h3a45250_0
  wheel-0.33.1-py37_0
  wincertstore-0.2-py37_0


Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Creating r-tensorflow conda environment for TensorFlow installation...
Collecting package metadata: ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: C:\ANACON~1\envs\r-tensorflow

  added / updated specs:
    - python=3.7


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/win-64::ca-certificates-2019.1.23-0
  certifi            pkgs/main/win-64::certifi-2018.11.29-py37_0
  openssl            pkgs/main/win-64::openssl-1.1.1b-he774522_0
  pip                pkgs/main/win-64::pip-19.0.3-py37_0
  python             pkgs/main/win-64::python-3.7.2-h8c8aaf0_10
  setuptools         pkgs/main/win-64::setuptools-40.8.0-py37_0
  sqlite             pkgs/main/win-64::sqlite-3.26.0-he774522_0
  vc                 pkgs/main/win-64::vc-14.1-h0510ff6_4
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.15.26706-h3a45250_0
  wheel              pkgs/main/win-64::wheel-0.33.1-py37_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py37_0


Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
#
# To activate this environment, use:
# > activate r-tensorflow
#
# To deactivate an active environment, use:
# > deactivate
#
# * for power-users using bash, you must source
#

Collecting package metadata: ...working... done
Solving environment: ...working... failed

PackagesNotFoundError: The following packages are not available from current channels:

  - tensorflow==1.13.1

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/win-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.


Error: Error 1 occurred installing packages into conda environment r-tensorflow

4 願屋 #

activate r-tensorflow
pip install --upgrade tensorflow

5 #

sess = tf$Session()
hello <- tf$constant('Hello, TensorFlow!')
sess$run(hello)