4

when I try to install zlib by below command

sudo pip install zlib

I am getting below error...

Could not find any downloads that satisfy the requirement zlib
Cleaning up...
No distributions at all found for zlib
4
  • not surprising, as there is no such library on pypi. Are you trying to install the zlib system library? If so, use your systems package manager, pip isn't the right tool for that.
    – mata
    Commented Apr 8, 2016 at 10:05
  • then, why I am getting no module named zlib when I try to start django? Commented Apr 8, 2016 at 10:17
  • That means the zlib module from the standard library can't be imported, which may indicate problems with your python installation, so this is actually about something completely unrelated to pip. You should edit your question accordingly and add the full error message you're getting.
    – mata
    Commented Apr 8, 2016 at 17:30
  • Are you sure zlib is not already compiled into your Python?
    – Mark Adler
    Commented Jul 28, 2021 at 3:37

1 Answer 1

1

It is not possible to pip install zlib as zlib is not a library on pypi. If apt-get is an option, consider using

sudo apt-get install zlib1g-dev

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.