我pip install
在OSX 10.13上的virtualenv中运行时遇到问题。我已经跑步brew install openssl
了,路径/usr/local/include/openssl
指向../opt/openssl/include/openssl
。有谁知道如何解决这一问题?在我python
使用重新安装后,这种情况开始发生brew install
。
pip配置了需要TLS / SSL的位置,但是Python中的ssl模块不可用。收集枕头无法获取URL https://pypi.python.org/simple/pillow/:确认ssl证书时出现问题:无法连接到HTTPS URL,因为SSL模块不可用。-跳过找不到满足枕头要求的版本(来自版本:)找不到与枕头匹配的分布
更新:这是更多信息:
✗ which python
/usr/local/opt/python/libexec/bin/python
✗ which pip
/usr/local/opt/python/libexec/bin/pip
✗ python --version
Python 3.7.4
✗ pip --version
pip 19.1.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
✗ brew info python
python: stable 3.7.4 (bottled), HEAD
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python/3.6.5_1 (4,795 files, 100.0MB)
Poured from bottle on 2019-10-08 at 14:39:37
/usr/local/Cellar/python/3.7.4_1 (3,903 files, 60.6MB) *
Poured from bottle on 2019-10-08 at 14:37:10
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb
是的,我同时安装了3.6.5_1和3.7.4_1,因为有时可能需要在两者之间进行切换。
✗ brew unlink openssl
Unlinking /usr/local/Cellar/openssl/1.0.2s... 0 symlinks removed
brew unlink
。
which python
,which pip
,python --version
,pip --version
。然后,我上次检查的openssl
是桶装的,所以/usr/local/include/openssl
不应该出现,运行brew unlink openssl
。