2017-04-22 1 views
0

j'ai un problème très étrange avec la nouvelle ubuntu 17.04 lorsque je tente d'installer quelque chose de pépin, je suis incapable de le faire ... c'est l'erreur:setuptools pip manquantes dans 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 

cette se produira avec l'un des outils que je veux installer es. beautifulsoap, flacon ecc ...

Python est la version:

Python 2.7.13 

Pip est la dernière version:

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

setuptools est installé:

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

utilisant la PyCharm les paquets sont installés correctement mais j'ai beaucoup de bibliothèque à inclure et je ne peux pas installer un par un d certains manquent comme bibliothèque se connecter flacon-...

Merci pour toute aide

Répondre

0

extern est nécessaire et n'est pas installé de façon à télécharger extern:

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

et l'installer avec la commande suivante:

python setup.py install 

et si le problème est pas résolu setuptools désinstaller de pépin

pip uninstall setuptools