I am having CentOS 6 with below python:
Default:
[root@localhost vagrant]# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Custom:
[root@localhost vagrant]# python2.7
Python 2.7.13 (default, Jul 7 2017, 12:01:53)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
When I am trying to install pip using Python2.7 then getting below error:
[root@localhost vagrant]# python2.7 get-pip.py
Traceback (most recent call last):
File "get-pip.py", line 20061, in <module>
main()
File "get-pip.py", line 194, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip
zipimport.ZipImportError: can't decompress data; zlib not available
If the installation is done via yum(I suppose uses default python) then pip gets installed successfully but I am facing issues while installing any module via pip with Error: InsecurePlatformWarning And suggests for python upgrade. How can this be fixed and has some1 face similar kind of issue?