rPython using wrong python installation on Mac OSX

后端 未结 5 1402
猫巷女王i
猫巷女王i 2020-12-07 02:13

I\'ve installed python 2.7.8 alongside the 2.7.5 which comes with OSX 10.9.4.

Now how can I point rPython to python 2.7.8?

Attempt #1

5条回答
  •  囚心锁ツ
    2020-12-07 02:20

    what worked for me is that i specify the lib and version in install.packages, like this

    install.packages("rPython",lib= "path_to_your_R/R/library/3.1", configure.vars= "RPYTHON_PYTHON_VERSION=3")
    

    And it indeed installed with python version which under 3.x

提交回复
热议问题