网状:py_available返回FALSE

时间:2019-12-13 11:04:13

标签: python r reticulate

我使用conda创建了一个虚拟环境。

> library(reticulate)
> use_condaenv("env_ret")



> py_discover_config()
python:         C:\Program Files\Anaconda3\envs\env_ret\python.exe
libpython:      C:/Program Files/Anaconda3/envs/env_ret/python38.dll
pythonhome:     C:\PROGRA~1\ANACON~1\envs\env_ret
version:        3.8.0 (default, Nov  6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:\PROGRA~1\ANACON~1\envs\env_ret\lib\site-packages\numpy
numpy_version:  1.17.3

python versions found: 
 C:\Program Files\Anaconda3\envs\env_ret\python.exe
 C:\PROGRA~1\ANACON~1\envs\env_ret\python.exe
 C:\PROGRA~1\ANACON~1\python.exe
 C:\Program Files\Anaconda3\python.exe
 C:\Program Files\Anaconda3\envs\my-env\python.exe

但是,我不能使用它:

> py_config()
Error in py_initialize(config$python, config$libpython, config$pythonhome,  : 
  Py_CompileString - The specified procedure could not be found.

> py_available()
[1] FALSE

RSTUDIO版本:1.2.1335 R版本:3.6.1 的Python:3.7.1

谢谢

0 个答案:

没有答案