Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-bash: /Library/Frameworks/Python.framework/Versions/3.6/bin/pip: No such file or directory

I had a lot of problems with python and I think I screwed things up. When I type in to terminal

$which python

it returns

/usr/bin/python

Then when I type

$pip install google

It says

-bash: /Library/Frameworks/Python.framework/Versions/3.6/bin/pip: No such file or directory

How can I resolve this? I really appreciate any help.

like image 833
GoopieGoogpie Avatar asked Oct 25 '25 17:10

GoopieGoogpie


1 Answers

If you've installed pip using Python 3, you may have to run pip3 instead of pip. Additionally, you should probably use something like virtualenv or Anaconda to manage different environments and packages.

You can also try re-installing pip using the get-pip.py script from pip's installation instructions.

Install pip

To install pip, securely download get-pip.py

Then run the following (which may require administrator access):

python get-pip.py 

If setuptools is not already installed, get-pip.py will install setuptools for you.

If you still have problems, try installing virtualenv and the packages from scratch and see if it works:

$ virtualenv venv
$ source venv/bin/activate
(venv) $ venv/bin/pip install google-cloud-storage
(venv) $ venv/bin/python -c 'import google.cloud.storage'
like image 197
R.F. Nelson Avatar answered Oct 28 '25 08:10

R.F. Nelson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!