Python Forum
Pip problem - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Pip problem (/thread-25196.html)



Pip problem - Jules - Mar-23-2020

Hi there !

I'm a beginner and I have a problem : I want to install tensorflow and for that I need to import it with pip but unfortunately as soon as I try to do something with pip either to update it or to install something I get this error message :
/Library/Developer/CommandLineTools/Library/Frameworks/Python3. framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'pip': [Errno 2] No such file or directory

Is it a problem of download or location?
Can you help me?

Thank you in advance


RE: Pip problem - Larz60+ - Mar-23-2020

please show your pip command.


RE: Pip problem - Jules - Mar-23-2020

I have tried lot of commands and for all the ones I tried I got tis message, but here is some :

- python3 pip install tensorflow

- pip install -U pip

- python3 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Thank you for you reply


RE: Pip problem - Larz60+ - Mar-23-2020

from command line issue the following (and report back):
pip -V
python -V
pip3 -V
python3 -V



RE: Pip problem - Jules - Mar-24-2020

I have that for reply :

zsh: command not found: pip
Python 2.7.16
pip 19.0.3 from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)
Python 3.7.3


RE: Pip problem - Larz60+ - Mar-25-2020

OK
from above you don't have pip installed on python (2.7) that's fine as python 2.7 is no longer supported
pip3 is linked to python3.7.3

so pip3 install tensorflow
should do the trick