Reputation: 388
I'm trying to install something with pip but everytime I execute it I get that error and I tried installing it with pacman
and didn't work; also wanted to try securely downloading get-pip.py
but I read that it may not be a good idea on Arch and I don't know if any of you have a solution I can try; this is the whole traceback:
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==7.1.0', 'console_scripts', 'pip')()
File "/usr/lib/python3.5/site-packages/setuptools-18.1-py3.5.egg/pkg_resources/__init__.py", line 558, in load_entry_point
File "/usr/lib/python3.5/site-packages/setuptools-18.1-py3.5.egg/pkg_resources/__init__.py", line 2682, in load_entry_point
File "/usr/lib/python3.5/site-packages/setuptools-18.1-py3.5.egg/pkg_resources/__init__.py", line 2355, in load
File "/usr/lib/python3.5/site-packages/setuptools-18.1-py3.5.egg/pkg_resources/__init__.py", line 2361, in resolve
ImportError: No module named 'pip'
Upvotes: 4
Views: 7268
Reputation: 111
I was doing a search for how to get pip installed as well. Some posts suggested that pip installs by default since python 2.x. I went to /usr/bin/ and looked for pip. No dice. I found mention of
python -m ensurepip --upgrade
Running the above suggested that I needed to have root privileges. I typed sudo !! and hit Enter and was greeted with pip being installed.
Upvotes: 10
Reputation: 21
The current version of pip available on the arch repos uses python 2. You're using python 3. Give this a shot:
cd /usr/bin
ln -sf python2 python
Keep in mind this will globally change the version of python you're using. You can always change it back:
ln -sf python3 python
Upvotes: 0