我有一个mac,当我这样做的时候:python --version
我得到:Python 2.7.6
但当我要:/System/Library/Frameworks/Python.framework/Versions/3.3
2.7.6在哪里?
有什么建议我该怎么做?
更新:$ which -a python python3
/usr/bin/python
/usr/local/bin/python3
$ brew list python python3
Error: No such keg: /usr/local/Cellar/python
$ locate python
WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.
在PyCharm编辑器中,默认设置解释器显示: