rPython using wrong python installation on Mac OSX

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

    I know this is an old question, but I ran into the same problem as OP and this is the solution I found worked.

    First, I added the RPYTHON_PYTHON_VERSION=3 to my ~/.bash_profile. Instead of installing rPython using install.packages, I downloaded the source from CRAN and installed from the command line using R CMD INSTALL. This worked fine and detected the python3 version I had installed on my system.

提交回复
热议问题