我已经学习 Python 几个月了,但现在我发现我的 2.7 安装存在一些问题,因为我研究了诸如 nltk 之类的模块。
但是,当我想使用帮助(“模块)列出模块时,我有一个主要错误,我认为可以解释问题是:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.6.28-py2.7.egg/setuptools/command/install_scripts.py:3: UserWarning: Module numpy was already imported from /Library/Python/2.7/site-packages/numpy-override/numpy/__init__.pyc, but /Library/Python/2.7/site-packages/numpy-1.8.0.dev_5c944b9_20120828-py2.7-macosx-10.8-x86_64.egg is being added to sys.path
from pkg_resources import Distribution, PathMetadata, ensure_directory
我还收到以下与不推荐使用的模块有关的错误:
/Library/Python/2.7/site-packages/statsmodels-0.5.0-py2.7-macosx-10.8-intel.egg/scikits/statsmodels/__init__.py:2: UserWarning: scikits.statsmodels namespace is deprecated and will be removed in 0.5, please use statsmodels instead
我仍在努力掌握路径。以后如何避免这个问题?