尝试安装zlib时出现Pip错误

时间:2017-11-21 01:39:37

标签: python pip zlib

我是Python和编程的新手,我在zlib通过pip安装时遇到问题,我一直遇到以下问题:

pip install zlib
Collecting zlib
Could not find a version that satisfies the requirement zlib (from versions: )
No matching distribution found for zlib

2 个答案:

答案 0 :(得分:1)

对于Ubuntu: sudo apt-get install zlib1g-dev

答案 1 :(得分:0)

zlib不是python包,您可以尝试yum/apt-get install zlib-develyum/apt-get install zlib