rPython using wrong python installation on Mac OSX

后端 未结 5 1423
猫巷女王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:29

    I setup the following commands in RStudio, hope these help.

    > system("python --version")
    Python 2.7.10
    
    > Sys.setenv(PATH = paste("/usr/local/bin", Sys.getenv("PATH"),sep=":"))
    
    > system("python --version")
    Python 2.7.11
    

提交回复
热议问题