枫子轩 发表于 2015-9-3 15:38
在系统命令行输入 pip install rpy2
Collecting rpy2
Using cached rpy2-2.8.3.tar.gz
Complete output from command python setup.py egg_info:
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.
'sh' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
C:\PROGRA~1\R\R-33~1.1\bin\x64\R CMD config --ldflags
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\zdc\AppData\Local\Temp\pip-build-z36ytq6a\rpy2\setup.py", line 331, in <module>
ri_ext = getRinterface_ext()
File "C:\Users\zdc\AppData\Local\Temp\pip-build-z36ytq6a\rpy2\setup.py", line 238, in getRinterface_ext
ldf = shlex.split(' '.join(rexec.cmd_config('--ldflags')))
File "C:\Users\zdc\AppData\Local\Temp\pip-build-z36ytq6a\rpy2\setup.py", line 191, in cmd_config
universal_newlines = True)
File "C:\Anaconda3\lib\subprocess.py", line 626, in check_output
**kwargs).stdout
File "C:\Anaconda3\lib\subprocess.py", line 708, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('C:\\PROGRA~1\\R\\R-33~1.1\\bin\\x64\\R', 'CMD', 'config', '--ldflags')' returned non-zero exit status 1
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\zdc\AppData\Local\Temp\pip-build-z36ytq6a\rpy2\