在Anacond下为RStudio设置python

2024-10-02 12:30:12 发布

您现在位置:Python中文网/ 问答频道 /正文

在Anaconda中从RStudio运行install\u keras时,无法更改正在使用的python

我在我的windows10box上安装了Python的几个版本:python2.7、python3.6,以及似乎已经与Anaconda一起安装的Python。我通过水蟒安装了RStudio。在

我试图在R代码中使用keras库。我运行“install\u keras()”并收到以下错误:

Error: Error 1 occurred while checking for python architecture
In addition: Warning message:
running command '"C:\Python27\/python.exe" -c "import sys; import platform; 
sys.stdout.write(platform.architecture()[0])"' had status 1  

我尝试过使用方法和conda设置运行install\u keras:

^{pr2}$

但我还是犯了同样的错误。我还尝试使用系统设置环境使用python()似乎没有帮助。在

在哪个系统('PYTHON')确实显示了我要使用的正确的可执行文件。在

是的,我的环境变量确实在路径中首先设置了Python。但改变这一点似乎没有帮助。在

我尝试过卸载并重新安装keras,包括R库和'conda'(pip)python库。那没用。在

如果我在这一点上找不到这个配置。在

建议?在


Tags: installimport版本系统错误syserroranaconda

热门问题