0

I am setting up pip using the official documentation on an Ubuntu 22.04 LTS system, and when I execute the python get-pip.py command, I get an error message stating:

python3: can't open file '/home/usr/get-pip.py': [Errno 2] No such file or directory

I thought it was an error on my part because python commands don't work in Linux distros and I aliased the python3 command:

alias python='python3'

The problem persisted. A quick Google Search led me to this solution and my error was solved.

Afterwards, I did some digging on what [Errno 2] is but all of the material I encountered was hyperfocused on solving this error and not what causes it.

  • 2
    It literally tells you: "No such file or directory" – muru Aug 25 '23 at 00:49
  • 2
    Crossposted: https://unix.stackexchange.com/questions/754865/ubuntu-22-04-lts-what-is-errno-2-in-pip-installation https://stackoverflow.com/q/76972641/2072269 – muru Aug 25 '23 at 01:03
  • possible duplicate of [python pip broken on ubuntu](https://askubuntu.com/q/642533/) – karel Aug 26 '23 at 10:49
  • 1
    I’m voting to close this question because it's cross-posted (https://stackoverflow.com/q/76972641/2072269 and https://unix.stackexchange.com/questions/754865/ubuntu-22-04-lts-what-is-errno-2-in-pip-installation). – BeastOfCaerbannog Aug 29 '23 at 06:50

0 Answers0