No module named urllib3 - attempt to install pip

I am trying to install python 2.7 and pip on my system. I am working on redhat linux. I used to follow this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6 -4

which seemed to work for installing python, however when I try to install pip I get the following message: ERROR: root: code for hash md5 not found.

ImportError: no module named urllib3

it after use curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"

and then using python get-pip.py

I tried a couple of installations of python 2.7.2 and 2.7.9, both have the same problem.

I do not have root privileges on this machine. When I ran the configuration file when setting up my python, I tried to use --with -pectpip, but obviously I'm doing something wrong.

+4
source share

Source: https://habr.com/ru/post/1659878/


All Articles