I recently Installed python3.6 on debian 9.4 by these commands
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
tar xvf Python-3.6.5.tgz
cd Python-3.6.5
./configure --enable-optimizations --with-ensurepip=install
make -j8
sudo make altinstall
python3.6
it worked when i type python3.6
but pip doesn't installed on python3.6 so i decided to install it manually by these commands
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3.6 get-pip.py
i get this error
Traceback (most recent call last):
File "get-pip.py", line 20649, in <module>
main()
File "get-pip.py", line 197, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
and then i installed zlib by typing
sudo apt-get install zlib1g
still it doesn't work What should i do to install pip on python3.6.5 on debian9.4 stable please help