编辑:评论中建议的答案或我发现的其他答案主要适用于 linux 或使用 brew 安装的默认 python。我面临的问题是使用 pyenv 安装的 python 版本
当我尝试使用 pip 安装任何软件包时,我收到此错误消息
WARNING: pip is configured with locations that require TLS/SSL, however the SSL module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the SSL certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with URL: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
我正在使用 pyenv、pyenv-virtualenv,并且我正在尝试使用 python 3.7.0 在 virtualenv 中安装包。几天前它运行良好,我怀疑将我的 macOS 更新到 10.14.6 会导致这个问题。
在谷歌搜索或 StackOverflow 上我找不到任何可行的解决方案。有人可以帮我解决这个问题吗