在安装了新的操作系统(Lion OSX)之后,我遇到了同样的问题。
安装并执行python之后sudo easy_install ipython
ipython
我得到以下错误:Traceback (most recent call last):
File "/usr/local/bin/ipython", line 8, in
load_entry_point('ipython==0.10.2', 'console_scripts', 'ipython')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 318, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2220, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'ipython') not found
然后我意识到这是一个许可问题。如果我像sudo那样执行ipython脚本,它就会工作。sudo ipython
因此,我将文件夹/Library/Python/2.7/site-packages/的所有权从root更改为user()sudo chown -R :wheel /Library/Python/2.7/site-packages/
只有在没有几个使用python的帐户时,才使用change ownership。
我希望对你有用。
最好的