简体   繁体   中英

Installing Python on Mac OS X

This should be a really simple question, but I'm a little new to all this. I am trying to update my version of Python on Mac OS X 10.6.8. So, I downloaded Python 3.3 from www.python.org, and ran the .dmg file. This then created a "Python 3.3" icon in my Applications folder. However, when I type "python -V" into the Terminal, it prints "Python 2.7.6", so clearly my version of Python has not been updated. What am I doing wrong?

Thanks!

You don't want to actually update the system version of python.

But also, python3 is the executable name.

Python 3.3 is installed in your mac (as you installed it from dmg). it should be invoked in terminal using python3.

Updating Python on Mac

Updating the OS's version of Python could cause potential instability. You should not try to change that. See this similar post

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