Python: can't open file get-pip.py error | Solution

 One of the common error python developers (new guys) face

python: can't open file get-pip.py error 

 

when they type python get-pip.py in CMD (command line). Despite the presence of the get-pip file in the Python installation folder like python/tools/scripts, we get the error sometimes. The common solution to the get-pip problem is to add your script's folder path into the Path variable.  

 

 


For Mac or Linux users you first required the command:

curl 'https://bootstrap.pypa.io/get-pip.py' > get-pip.py && sudo python get-pip.py

With this easy solution you won't get the issue again.

Post a Comment

0 Comments