I am trying to install the rpy2
package for python 3 on Windows 7. So I simply typed pip install rpy2 in the command line. However, it fails for a reason I do not understand, could anyone clear this up please? It threw back the following in the command line:
Collecting rpy2
Using cached rpy2-2.8.2.tar.gz
Complete output from command python setup.py egg_info:
Warning: Tried to guess R's HOME but no command <R> in the PATH.
_______________________________
Command "python setup.py egg_info" failed with error code 1 in C:\Users\...\AppData\Local\Temp\pip-build-14jn4kdx\rpy2\
There is no official support of windows.
There exists pre-compiled binaries (see: https://rpy2.github.io/doc/latest/html/overview.html#microsoft-s-windows-precompiled-binaries ) but they are for an older release.
At the time of writing using the Linux subsystem available with Windows 10 might be the best options.
它与 Windows 上的 conda 一起工作正常
conda install rpy2
Are your R binaries in your PATH variable?
Try this in your command prompt:
path = C:\path\to\R
pip install rpy2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.