简体   繁体   中英

Configuring Mac OS X Mountain Lion to use python.org's python 2.7.4

I am using Mac OS X Mountain Lion and I have installed the "python.org version" of python 2.7.4.

It seems like this newly version is invoked by the command python2 since it gives the version as 2.7.4, whereas the default (pre-installed mac) version is invoked with the command python (it displays version 2.7.2). Is this correct?

How do I best change the command 'python' to point to the newly installed 'python2'?

There should be a shell script in the /Applications/Python XX run this shell script to setup your PATH variable for whatever shell you use.

For more info check the README.txt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM