源码安装python-3.7.3时
make install 遇到找不到zlib的错误
执行这句命令可以解决
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
参考:http://www.sodevel.com/course/res/269/919
另外python官网的源码下载速度太慢了
国内搜狐镜像:http://mirrors.sohu.com/python/3.6.12/
http://mirrors.sohu.com/python/3.7.3/
每次用改python版本号就可以了
网友评论