V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
xj188
V2EX  ›  Python

mac os 下 pip3 报 ssl 错误,有大神遇到过吗

  •  
  •   xj188 · 2017-06-05 20:54:24 +08:00 · 8192 次点击
    这是一个创建于 2531 天前的主题,其中的信息可能已经有所发展或是发生改变。

    无法使用 pip3 安装东西,提示 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting selenium Could not fetch URL https://pypi.python.org/simple/selenium/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping Could not find a version that satisfies the requirement selenium (from versions: )

    我看了一下 openssl 是安装的,OpenSSL 1.0.2l 25 May 2017 难得玩下 mac os 下的 python3.6,居然无法使用 pip3 install 有人遇到过啊

    1 条回复    2017-06-05 22:19:51 +08:00
    a132811
        1
    a132811  
       2017-06-05 22:19:51 +08:00
    我用的 brew install openssl python3,没有问题。
    或者这个能解决你的问题, 最下面的那条答案
    https://stackoverflow.com/questions/41489439/pip3-installs-inside-virtual-environment-with-python3-6-failing-due-to-ssl-modul
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3900 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:08 · PVG 13:08 · LAX 22:08 · JFK 01:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.