zlib - Install Python package locally - Ask Ubuntu
askubuntu.com › questions › 741609Feb 07, 2010 · I highly recommend using virtualenv for a local install of Python that has the same minor version as the one that comes with Ubuntu (2.7.x), I'm quite new myself and had a lot of issues attempting to install packages to a local version without it, whereas with it you can simply create and activate a new environment and install to your hearts content without changing the global package list.
no module named zlib
www.py4u.net › discuss › 12890Sounds like you need to install the devel package for zlib, probably want to do something like sudo apt-get install zlib1g-dev (I don't use ubuntu so you'll want to double-check the package). Instead of using python-brew you might want to consider just compiling by hand, it's not very hard.
How to Install Zlib on Ubuntu Linux [Easily]
itsfoss.com › install-zlib-ubuntuJul 08, 2021 · Install Zlib on Ubuntu-based Linux distributions. Open a terminal and use the following command: sudo apt install zlib1g. Please keep in mind that the the letter before g is 1 (one), not lowercase L. Many people make this mistake while typing the command. The other package, zlib1g-dev is development package.