を見つけることができません。Pythonは、私はパッケージをsetup.py installをしようとしたとして、私は次はImportErrorを得たsetuptoolsの
[email protected]:~$ sudo apt-get install python-setuptools
[sudo] password for amir:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
できるのはなぜ」:
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from setuptools import setup, Extension
ImportError: No module named setuptools
これはsetuptoolsのは、すでにインストールされているが起こりますtはpythonのsetuptoolsモジュールを見つける?
私は最近、元からpython2.7.12をインストールしました。私はそれを私のシステム(2.7.3)上の古いバージョンのdistパッケージに指摘すべきでしょうか?どのように私は一貫性がありますか? – amirteymuri
Apt-getはdebianのパッケージマネージャです。おそらくあなたが 'apt-get install python'を使ってPythonをインストールしていたとすれば、それはうまくいったでしょう。あなたの最善の策は、pipという名前の2.7.9以上のバージョンにインストールされているpythonパッケージマネージャを使うことです。コマンドは次のとおりです:pip install setuptools – IzPrEE
私はpipを試しましたが、setuptoolsはすでにnewsetバージョンです: '要件は既に満足しています(アップグレードするには--upgradeを使います):/ usr/local/lib/python2.7/dist-packages'のsetuptools – amirteymuri