I am using python3.8 for a project, and I want to install all dependencies from pipfile. I got:
[pipenv.exceptions.InstallError]: ModuleNotFoundError: No module named 'zlib'
I tried:
sudo apt install zlib1g
sudo apt install zlib1g-dev
pipenv install zlib
python3.8 -m pip install zlib
But still get the same error. Though I have zlib on python3.6 and python3.9:
> > > $ python3
> > > Python 3.9.6 (default, Jul 25 2021, 17:47:28)
>
> > > import zlib
> > >
> > > exit()
> > > $ python3.6
> > > Python 3.6.9 (default, Jan 26 2021, 15:33:00)
>
> > > import zlib
> > >
> > > exit()
> > > $ python3.8
> > > Python 3.8.3 (default, Jun 22 2020, 19:41:04)
>
> > > import zlib
> > > Traceback (most recent call last):
> > > File "\<stdin\>", line 1, in \<module\>
> > > ModuleNotFoundError: No module named 'zlib'
How can I install zlib on python3.8 ?