2017-04-22 86 views
0

我有新的Ubuntu 17.04个很奇怪的问题,当我尝试安装从PIP我无法做到这一点的东西......这是错误:PIP setuptools的在Ubuntu 17.04失踪

sudo pip install psutil 

The directory '/home/metu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
The directory '/home/metu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
Collecting psutil 
Downloading psutil-5.2.2.tar.gz (348kB) 
100% |████████████████████████████████| 358kB 1.3MB/s 
Could not import setuptools which is required to install from a source 
distribution. 
Traceback (most recent call last): 
File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 387, in setup_py 
import setuptools # noqa 
File "/usr/share/python-wheels/setuptools-32.3.1-py2.py3-none-any.whl/setuptools/__init__.py", line 10, in <module> 
File "/usr/share/python-wheels/setuptools-32.3.1-py2.py3-none-any.whl/setuptools/extern/__init__.py", line 1, in <module> 
ImportError: No module named extern 

这将会发生在我想要安装的任何工具上。 beautifulsoap,烧瓶ECC ...

Python是版本:

Python 2.7.13 

皮普是最新版本:

pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7) 

setuptools的安装:

sudo apt-get install python-setuptools 
python-setuptools is already the newest version (33.1.1-1). 

使用pycharm的包安装正确,但我有很多库包括,我不能一个一个地安装d一些缺少像烧瓶登录库...

感谢所有帮助

回答

0

的extern需要,并没有安装所以下载的extern:

https://pypi.python.org/pypi/extern 

,并用命令来安装它:

python setup.py install 

,如果问题没有从点子

解决卸载的setuptools