Installation de virtualenvwrapper -> Error (Python pip)


#1

Bonjour,
J’ai actuellement un problème pour installer virtualenvwrapper

J’utilise la commande :
`

sudo pip install virtualenvwrapper --trusted-host files.pythonhosted.org

(j’avais d’autre problème avant mais “–trusted-host” me permet de les régler)

Voici le résultat :

Collecting virtualenvwrapper
Downloading https://files.pythonhosted.org/packages/c1/6b/2f05d73b2d2f2410b48b90d3783a0034c26afa534a4a95ad5f1178d61191/virtualenvwrapper-4.8.4.tar.gz (334kB)
100% |████████████████████████████████| 337kB 30kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-3PIOIB/virtualenvwrapper/setup.py”, line 7, in
pbr=True,
File “/usr/lib/python2.7/distutils/core.py”, line 111, in setup
_setup_distribution = dist = klass(attrs)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 317, in init
self.fetch_build_eggs(attrs[‘setup_requires’])
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 372, in fetch_build_eggs
replace_conflicting=True,
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 846, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 1118, in best_match
return self.obtain(req, installer)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 1130, in obtain
return installer(requirement)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 440, in fetch_build_egg
return cmd.easy_install(req)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 687, in easy_install
not self.always_copy, self.local_index
File “/usr/lib/python2.7/dist-packages/setuptools/package_index.py”, line 636, in fetch_distribution
dist = find(requirement)
File “/usr/lib/python2.7/dist-packages/setuptools/package_index.py”, line 617, in find
dist.download_location = self.download(dist.location, tmpdir)
File “/usr/lib/python2.7/dist-packages/setuptools/package_index.py”, line 566, in download
found = self._download_url(scheme.group(1), spec, tmpdir)
File “/usr/lib/python2.7/dist-packages/setuptools/package_index.py”, line 805, in _download_url
return self._attempt_download(url, filename)
File “/usr/lib/python2.7/dist-packages/setuptools/package_index.py”, line 811, in _attempt_download
headers = self._download_to(url, filename)
File “/usr/lib/python2.7/dist-packages/setuptools/package_index.py”, line 710, in _download_to
fp = self.open_url(strip_fragment(url))
File “/usr/lib/python2.7/dist-packages/setuptools/package_index.py”, line 761, in open_url
% (url, v.reason))
distutils.errors.DistutilsError: Download error for _https://files.pythonhosted.org/packages/81/4d/a7954a90c51b7a84334740e90a5f6c06ce9e157bdaaf1a342fcbd9a22d85/pbr-5.2.1.tar.gz#sha256=93d2dc6ee0c9af4dbc70bc1251d0e545a9910ca8863774761f92716dece400b6: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)
----------------------------------------
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-3PIOIB/virtualenvwrapper/`

J’ai essayé plein de chose, notamment de mettre à jour python, pip, les certifications …

A noter que cela fait la même chose avec python3.

Si vous avez une solution, je suis preneur.

Merci d’avance,
Paul


#2

Finalement j’ai trouvé la solution :smile:

$ PYTHONHTPPSVERIFY=0 pip install virtualenvwrapper