前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >mac使用pip3报错

mac使用pip3报错

作者头像
py3study
发布2020-01-07 10:53:50
7530
发布2020-01-07 10:53:50
举报
文章被收录于专栏:python3

mac使用pip3报错

ImportError: cannot import name 'HTTPSHandler'

解决方法

down vote

It seems your pip requires HTTPSHandler which is part of SSL library.OSXOn OS X you should link OpenSSL during Python installation (See: #14497).For Python 2:brew reinstall python --with-brewed-openssl pip install --upgrade pipFor Python 3:brew reinstall python3 --with-brewed-openssl pip3 install --upgrade pipYou could have multiple Python instances together, to list them run:brew list | grep ^pythonOr list your version via ls -al /usr/local/lib/python*.参考链接:

https://stackoverflow.com/questions/20688034/importerror-cannot-import-name-httpshandler-using-pip

代码语言:javascript
复制
https://stackoverflow.com/questions/41489439/pip3-installs-inside-virtual-environment-with-python3-6-failing-due-to-ssl-modul
代码语言:javascript
复制
https://stackoverflow.com/questions/20688034/importerror-cannot-import-name-httpshandler-using-pip

pip指定pip源安装:

./obpy17/bin/pip3 install -i http://pypi.douban.com/simple/ django  --trusted-host pypi.douban.com

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019/09/14 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档