rPython using wrong python installation on Mac OSX

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

    You can have a look at the rPython INSTALL file (sorry, perhaps I should make it more explicit). It has a section on how to install rPython using the desired Python version when several coexists. It says:

    In systems where several Python versions coexist, the user can choose the Python version to use at installation time. By default, the package will be installed using the Python version given by

    $ python --version
    

    but it is possible to select a different one if the RPYTHON_PYTHON_VERSION environment variable is appropriately set.

    For instance, if it is defined as

     RPYTHON_PYTHON_VERSION=3.2
    

    it will try to use Python 3.2 (looking for python3.2 and python3.2-config in the path). If set to

     RPYTHON_PYTHON_VERSION=3
    

    it will install against the "canonical" Python version in the system within the 3.x branch.

提交回复
热议问题