如何解决通过 R 中的网状激活 anaconda env 不起作用
我正在尝试激活包含我的 tensorflow-gpu 库的 conda 环境。问题是,当我使用 use_condaenv("tensorflow_env",required = T)
加载它时,它显示“无法找到 conda 环境‘tensorflow-env’”。
当我在 cmd 中运行 conda info --envs
时,我列出了三个环境:base、r-reticulate 和 tensorflow_env。我可以使用 activate tensorflow_env
在 cmd 中激活它,启动 python 并加载 tf lib 没有任何问题。
我以前在安装 R 3.6.3 时运行过它。几周前,我将 R 升级到 R 4.0.3,并在我意识到它不再工作时尝试了 tf 教程。
当我运行 py_config()
时,它说:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: C:\Users\micha\ANACON~1\envs\r-reticulate
added / updated specs:
- numpy
- python=3.6
The following NEW packages will be INSTALLED:
certifi conda-forge/win-64::certifi-2020.12.5-py36ha15d459_1
intel-openmp conda-forge/win-64::intel-openmp-2020.3-h57928b3_311
libblas conda-forge/win-64::libblas-3.9.0-7_mkl
libcblas conda-forge/win-64::libcblas-3.9.0-7_mkl
liblapack conda-forge/win-64::liblapack-3.9.0-7_mkl
mkl conda-forge/win-64::mkl-2020.4-hb70f87d_311
numpy conda-forge/win-64::numpy-1.19.2-py36hc5bf2d3_1
pip conda-forge/noarch::pip-21.0.1-pyhd8ed1ab_0
python conda-forge/win-64::python-3.6.12-h39d44d4_0_cpython
python_abi conda-forge/win-64::python_abi-3.6-1_cp36m
setuptools conda-forge/win-64::setuptools-49.6.0-py36ha15d459_3
vc conda-forge/win-64::vc-14.2-hb210afc_2
vs2015_runtime conda-forge/win-64::vs2015_runtime-14.28.29325-h5e1d092_0
wheel conda-forge/noarch::wheel-0.36.2-pyhd3deb0d_0
wincertstore conda-forge/win-64::wincertstore-0.2-py36ha15d459_1006
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
#
# To activate this environment,use
#
# $ conda activate r-reticulate
#
# To deactivate an active environment,use
#
# $ conda deactivate
Fehler: Error 1 occurred creating conda environment r-reticulate
希望有人能帮助我。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。