1

为了安装greta包,我需要先安装 tensorflow-probability。TensorFlow 和 Python 3.7 Anaconda 已经安装。

当我在 R: 中尝试以下命令时reticulate::conda_install("r-tensorflow", "tensorflow-probability", pip = TRUE),我得到以下信息:

Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 
'C:\\Users\\PHILTE~1\\ANACON~1\\envs\\r-tensorflow\\Lib\\site-packages\\numpy\\core\\multiarray.cp36-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

我的笔记本电脑有管理员权限,所以我不确定为什么我的访问被拒绝。但是如何在--user命令中添加reticulate命令?

4

1 回答 1

2

这个网页为我解决了这一切:http: //preposterior.updog.co/november-8-2018-getting-your-computing-environment-ready-for-greta.html#november-8-2018-getting-your-计算环境准备就绪

脚步:

  1. 安装Anaconda

  2. 打开 Anaconda Prompt 并运行以下命令:

conda activate r-tensorflow

pip install --no-dependencies tensorflow-probability==0.4.0

conda install tensorflow=1.11

pip install h5py pyyaml requests Pillow scipy

  1. 回到 R,greta从 CRAN 安装包。
于 2018-12-28T04:38:35.630 回答