Eve*_*iar 4 python rpy2 anaconda
我在Windows 8上安装了最新的Anaconda Python发行版,我正在尝试安装rpy2软件包.我最初遇到了几个我能够规避的问题,但我现在仍然坚持我正在下面粘贴的一个特定错误.
命令
pip install rpy2
Run Code Online (Sandbox Code Playgroud)
退出并显示以下错误消息:
In file included from .\rpy\rinterface\_rinterface.c:58:0:
.\rpy\rinterface\_rinterface.h:8:15: fatal error: R.h: No such file or
directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
有什么建议?Rh的路径包含在我的环境中.
Gohlke博士的二进制文件可能是最简单的解决方案.但是您需要更改Python注册表中的安装路径才能使此方法生效.相关密钥位于HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath中.更改它,以便anaconda Python是默认python安装.如果需要,您可以随时更改它.
| 归档时间: |
|
| 查看次数: |
2135 次 |
| 最近记录: |