ImportError: cannot import name HTTPSHandler installieren get-pip.py
Bin ich immer diese Fehlermeldung wenn ich versuche zu installieren pip2.7.
Ich habe python 2.7 als meinen Standard schon, aber ich bin mir nicht sicher, warum ich immer diese.
OS: CentOS 6.5
OpenSSL bereits installiert.
Ich folgte dieser Anleitung zum installieren von Python 2.7:
http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/
[root@myservername arandomfolder]# python get-pip.py
Traceback (most recent call last):
File "get-pip.py", line 17474, in <module>
main()
File "get-pip.py", line 17466, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 17406, in bootstrap
import pip
File "/tmp/tmpXq2wUP/pip.zip/pip/__init__.py", line 10, in <module>
File "/tmp/tmpXq2wUP/pip.zip/pip/util.py", line 18, in <module>
File "/tmp/tmpXq2wUP/pip.zip/pip/_vendor/distlib/version.py", line 14, in <module>
File "/tmp/tmpXq2wUP/pip.zip/pip/_vendor/distlib/compat.py", line 31, in <module>
ImportError: cannot import name HTTPSHandler
welches os verwenden Sie?
Ich bin mit Centos 6.5 installiert ich habe Python 2.7 und es kommt auch mit Python2.6 vorinstalliert ich habe OpenSSL installiert als gut.
Ich war nach dieser Anleitung zu installieren Python2.7 toomuchdata.com/2014/02/16/how-to-install-python-on-centos
ist python unter Bezugnahme auf python 2.6 oder 2.7?
Seine Bezugnahme auf Python 2.7 # die python alias python='/usr/local/bin/python2.7' /usr/local/bin/python2.7
Ich bin mit Centos 6.5 installiert ich habe Python 2.7 und es kommt auch mit Python2.6 vorinstalliert ich habe OpenSSL installiert als gut.
Ich war nach dieser Anleitung zu installieren Python2.7 toomuchdata.com/2014/02/16/how-to-install-python-on-centos
ist python unter Bezugnahme auf python 2.6 oder 2.7?
Seine Bezugnahme auf Python 2.7 # die python alias python='/usr/local/bin/python2.7' /usr/local/bin/python2.7
InformationsquelleAutor Shiro | 2014-06-29
Du musst angemeldet sein, um einen Kommentar abzugeben.
Haben Sie ein Python-ohne SSL-Unterstützung kompiliert. Leider
get-pip
scheint erfordern SSL-Unterstützung.Wenn Sie eine Linux-distribution, stellen Sie sicher, dass OpenSSL installiert ist, einschließlich der Header bei der Zusammenstellung von Python-Quelltext.
Nicht Windows, natürlich. Mac OS X kommt mit einem Python-das schließt OpenSSL-Unterstützung, und kompilieren Sie eine Abholung der Header richtig. So ist es entweder ein BSD oder ein Linux-Distribution.
Ich verstehe das, aber es gibt verschiedene Pakete für verschiedene linux-Distributionen.
sicher, und wenn und wenn die OP um Hilfe bittet, wir können hinzufügen, dass die info.
Ich bin mit Centos 6.5 installiert ich habe Python 2.7 und es kommt auch mit Python2.6 vorinstalliert ich habe OpenSSL installiert als gut.
InformationsquelleAutor Martijn Pieters
So sieht wie ich war, fehlt die openssl-devel Abhängigkeit
nachdem ich installiert hatte, war ich in der Lage, diese zu installieren.
InformationsquelleAutor Shiro
Ich hatte dieses Problem auf einem Centos 6.5-Maschine, obwohl ich openssl und openssl-devel installiert. Ich war auch über die Schritte, die von der Website:
http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/
Habe ich entfernt, python-Pakete, die ich installiert hatte bevor: virtualenv, NetworkX, und pil:
Dann habe ich kompiliert Python 2.7 wieder und hatte nicht mehr dieses Problem. Nachdem ich die Schritte in dem link unten habe ich neu installiert, die oben genannten Pakete mit pip2.7:
InformationsquelleAutor user2308969
Habe ich das gleiche problem. Ich löste es, indem installieren
openssl-devel
undreconfigure
,make
,make install python3
:dann gehen Sie auf die
python3
Verzeichnis:InformationsquelleAutor spider