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.
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.pyThen run the following (which may require administrator access):
python get-pip.pyIf
setuptoolsis not already installed,get-pip.pywill 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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With