Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import error: no module name 'pip' on Arch

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'
like image 509
Aguxez Avatar asked Aug 30 '25 18:08

Aguxez


1 Answers

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.

like image 167
user2227942 Avatar answered Sep 03 '25 07:09

user2227942