尝试构建Python 2.7.17,然后在Mac OS 10.14上安装pip
已使用brew安装OpenSSL
Python的构建无法构建_ssl。当我尝试构建pip时,它失败了,并显示错误"Can't connect to HTTPS URL is the SSL module is not available
OpenSSL已正确安装在/usr/local/Cellar/openssl@1.1/1.1.1d/
发布于 2020-03-28 10:21:55
Python在/usr/local/ssl中查找ssl
为了构建它,我执行了以下操作: 1.设置一个不包含任何奇怪字符的OpenSSL路径:
cd /usr/local/Cellar/
ln -s openssl\@1.1 openssl2: Ran。/configure
3:已编辑的Makefile将所有"/usr/local/ssl“替换为"/usr/local/Cellar/openssl”
4:运行make / make test / make install
这创建了一个具有_ssl的Python,因此pip将运行
https://stackoverflow.com/questions/60896546
复制相似问题