Reputation: 147
According to this documentation (https://pip.pypa.io/en/stable/installing/) pip is included with python 2.7.9 or later. I compiled python source downloaded from https://www.python.org/ but pip is not found in the build directory or not in /usr/local/bin
after installing.
Used:
./configure --enable-shared --with-ensurepip=yes
option for build configuration, in centos 6.8, where python 2.6 is already installed, and I couldn't uninstall it because of dependency issues.
Upvotes: 1
Views: 4450
Reputation: 11
I experienced the same problem, python 2.7.12
in an Ubuntu system responded /usr/bin/python: No module named pip
.
I ran sudo apt-get update
, then sudo apt-get install python-pip
, then I got the problem solved.
Upvotes: 1