Python Forum

Full Version: Pip problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
please show your pip command.
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
from command line issue the following (and report back):
pip -V
python -V
pip3 -V
python3 -V
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
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