【发布时间】:2016-01-15 12:32:06
【问题描述】:
我有一个 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 编辑器中,默认设置解释器显示:
【问题讨论】:
-
which python... -
我做了:sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist 但是当我找到 python 时,我总是得到同样的警告。