How do I get PIP installed for python 3.4 version on RHEL? I tried the below and it is giving errors.
[root@ttudev]# curl -O https://bootstrap.pypa.io/get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1379k 100 1379k 0 0 773k 0 0:00:01 0:00:01 --:--:-- 874k
[root@ttudev]# python get-pip.py
Traceback (most recent call last):
File "get-pip.py", line 17759, in <module>
main()
File "get-pip.py", line 162, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip
zipimport.ZipImportError: can't decompress data; zlib not available
Not sure why it says zlib is not available. When I do rpm -qa |grep zlib. I see it is there on the system. zlib-1.2.3-29.el6.x86_64
Could anyone help me resolve this. have already spent too much time on this.
Thanks
Update
This is how I installed python 3.4
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
$ tar xf Python-3.*
$ cd Python-3.*
$ ./configure
$ make
$ make altinstall
This is how I made python3 the default one since I have python2.6 also installed.
alias python=python3
Could someone help me here pls?