イムピップを使用してgensimインストールしようとしているが、私は取得しています:Gensimをインストールする際にエラーが発生しました:「ソース配布からインストールするのに必要なsetuptoolsをインポートできませんでした」
"Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 377, in setup_py
import setuptools # noqa
File "/Library/Python/2.7/site-packages/setuptools/__init__.py", line 11, in <module>
from setuptools.extern.six.moves import filterfalse, map
File "/Library/Python/2.7/site-packages/setuptools/extern/__init__.py", line 1, in <module>
from pkg_resources.extern import VendorImporter
ImportError: No module named extern"
他の記事は、パッケージを正常にインストールされているために報告
pip install -U setuptools
を実行している示唆しています。
Installing collected packages: setuptools
Successfully installed setuptools-21.0.0
はしかし、gensimピップinstallコマンドを実行している:
pip install gensim
は、もう一度最初のエラーが発生します。
これはなぜ起こっているのでしょうか?
Mac OSX?システムPythonを使用していますか? – ChrisP