我有一個蘋果,當我這樣做:我的Mac上有什麼版本的Python?
python --version
我:
Python 2.7.6
,但是當我到:
/System/Library/Frameworks/Python.framework/Versions/3.3
其中位於2.7.6? 有什麼建議我應該怎麼做?
UPDATE:
$ 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編輯器,默認設置的解釋說明:
'我做這python' ... –
:sudo的launchctl負載 - w /System/Library/LaunchDaemons/com.apple.locate.plist但是當我找到python時,我總是得到相同的警告。 –