Python环境设置-zlib not available
Posted ac-milan2019
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python环境设置-zlib not available相关的知识,希望对你有一定的参考价值。
Linux中安Python3.6.5的时候,出现了一个错误:zipimport.ZipImportError: can‘t decompress data; zlib not available
网上找了各种办法都无法解决实际问题,记录下解决过程。
错误:
zipimport.ZipImportError: can‘t decompress data; zlib not available
Makefile:1079: recipe for target ‘install‘ failed
make: *** [install] Error 1
解决办法:安装依赖
1 sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev 2 libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev 3 xz-utils tk-dev
重新sudo make &&sudo make install
以上是关于Python环境设置-zlib not available的主要内容,如果未能解决你的问题,请参考以下文章
vscode使用anaconda的python环境提示“Can't connect to HTTPS URL because the SSL module is not available”
Eclipse的bug,SunTlsRsaPremasterSecret KeyGenerator not available
解决macos 10.15 pillow安装失败问题,提示the headers or library files could not be found for zlib
centos6.8安装python3.7.3报错Can't connect to HTTPS URL because the SSL module is not available问题解决
Caused by SSLError(“Can‘t connect to HTTPS URL because the SSL module is not available.“) 详解
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail