解决Python ImportError: cannot import name HTTPSHandler

参考 http://lovesoo.org/resolve-the-python-importerrorcannot-import-name-httpshandler.html
http://jingyan.baidu.com/article/e52e3615aba39640c60c51c3.html
安装好pip后,运行pip install pyzmq时报 ImportError: cannot import name HTTPSHandler
解决方法:
需要在安装python前,安装OpenSSl。



命令如下:

Centos:

yum install openssl openssl-devel -y

Debian or Ubuntu:

apt-get install libssl



之后,再重新安装Python即可。

猜你喜欢

转载自2018scala.iteye.com/blog/2312700
今日推荐