当我这样做时,我有一台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编辑器中,默认设置解释器显示: