Python Forum
still can't get pip to run - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: still can't get pip to run (/thread-14607.html)



still can't get pip to run - Skaperen - Dec-09-2018

i am still having troubles getting pip to run:
Output:
lt2a/forums /home/forums 1> pip list Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip._internal import main ImportError: No module named 'pip._internal' lt2a/forums /home/forums 2> cat /usr/local/bin/pip #!/usr/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main()) lt2a/forums /home/forums 3>
i did a full fresh install of Ubuntu 16.04.5 LTS and everything else has been working fine (except --system mode of pulseaudio). any ideas?


RE: still can't get pip to run - metulburr - Dec-09-2018

did you update pip?
python3 -m pip install --upgrade pip
or try
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --force-reinstall



RE: still can't get pip to run - Skaperen - Dec-09-2018

i tried to update pip and it failed. i didn't try that way. i'll give it a try after my shower.


RE: still can't get pip to run - Gribouillis - Dec-09-2018

Isn't it strange that your pip is in /usr/local/bin and it calls a python from /usr/bin ?


RE: still can't get pip to run - Skaperen - Dec-09-2018

so it should be #!/usr/bin/env python3?

(Dec-09-2018, 04:03 AM)metulburr Wrote: did you update pip?
python3 -m pip install --upgrade pip

this worked and pip seems to now, too. that script looks the same but the file's date is update. i assume it installed the missing module.