braeden darragh
braeden darragh

Reputation: 21

Pip error when trying to install zlib

I'm new to Python and programming and am having trouble installing zlib through pip, I keep having the issue below:

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

Upvotes: 2

Views: 26814

Answers (3)

Prajwal Singh
Prajwal Singh

Reputation: 41

For Ubuntu: sudo apt-get install zlib1g-dev

Upvotes: 4

DanielM
DanielM

Reputation: 4033

On mac using homebrew:

brew install zlib

Upvotes: 1

Genuine
Genuine

Reputation: 264

zlib is not a python package, you can try yum/apt-get install zlib-devel or yum/apt-get install zlib.

Upvotes: 3

Related Questions