1
我無法在MAC OS中通過pip或PyCharm安裝rpy2(Python包)。
但我可以(通過RStudio)運行Python(通過PyCharm)和R成功.....
主要錯誤消息是無法在MAC操作系統中通過pip安裝rpy2
"Error: Tried to guess R's HOME but no command (R) in the PATH." and "Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-OtKzsd/rpy2/".
我想也許作爲R PATH環境設置中的問題?
但我仍然不知道如何解決這個問題....
完整的錯誤消息低於:
host-217:~ ChenGuanYing$ sudo pip install rpy2
The directory '/Users/ChenGuanYing/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/ChenGuanYing/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting rpy2
Downloading rpy2-2.7.8.tar.gz (178kB)
100% |████████████████████████████████| 184kB 1.1MB/s
Complete output from command python setup.py egg_info:
Error: 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 /private/tmp/pip-build-OtKzsd/rpy2/