鱼C论坛

 找回密码
 立即注册
查看: 4643|回复: 1

python2.7安装rpy2,无法打开包括文件'R.h', 怎么解决?

[复制链接]
发表于 2014-9-4 21:40:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
Installed f:\python27\lib\site-packages\pyzmq-14.3.1-py2.7-win32.egg
Searching for rpy2
Reading https://pypi.python.org/simple/rpy2/
Best match: rpy2 2.4.3
Downloading https://pypi.python.org/packages/source/r/rpy2/rpy2-2.4.3.tar.gz#md5
=57e3fda409226dffb543c913c8553cdc
Processing rpy2-2.4.3.tar.gz
Writing c:\users\luping\appdata\local\temp\easy_install-wqnhwa\rpy2-2.4.3\setup.
cfg
Running rpy2-2.4.3\setup.py -q bdist_egg --dist-dir c:\users\luping\appdata\loca
l\temp\easy_install-wqnhwa\rpy2-2.4.3\egg-dist-tmp-oix8u7
"C:\PROGRA~1\R\R-215~1.2\bin\R" CMD config --ldflags
"C:\PROGRA~1\R\R-215~1.2\bin\R" CMD config --cppflags
"C:\PROGRA~1\R\R-215~1.2\bin\R" CMD config LAPACK_LIBS
"C:\PROGRA~1\R\R-215~1.2\bin\R" CMD config BLAS_LIBS
Configuration for R as a library:
  include_dirs: ()
  libraries: ()
  library_dirs: ()
  extra_link_args: ()
# OSX-specific (included in extra_link_args)
  framework_dirs: ()
  frameworks: ()
warning: no previously-included files matching '*patch*' found anywhere in distr
ibution
warning: no previously-included files matching '*diff*' found anywhere in distri
bution
warning: no previously-included files matching '.hg' found anywhere in distribut
ion
warning: no files found matching 'MANIFEST'
warning: no files found matching 'MPL_LICENSE'
warning: no files found matching 'GPL_LICENSE'
warning: no files found matching 'LGPL_LICENSE'
no previously-included directories found matching 'dist'
warning: no files found matching 'doc\source\rpy2_logo.png'
_rinterface.c
c:\users\luping\appdata\local\temp\easy_install-wqnhwa\rpy2-2.4.3\rpy\rinterface
\_rinterface.h(8) : fatal error C1083: 无法打开包括文件:“R.h”: No such file or
directory
error: Setup script exited with error: command 'F:\\Visual Studio 2008\\VC\\BIN\
\cl.exe' failed with exit status 2
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2014-10-4 17:26:17 | 显示全部楼层
请问楼上老兄的问题有答案了吗?我最近装rpy2也遇到此问题,搞了好久还没搞好。如有答案请指点。谢谢
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-11-15 20:17

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表