2

python version:

$ python3 -V
Python 3.7.0

pip3 path:

which -a pip3
/Library/Frameworks/Python.framework/Versions/3.7/bin/pip3
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3
/usr/local/bin/pip3

pip3 version:

pip3 -V
pip 18.0 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)

the tensorflow could be installed by pip without any problem but couldn't be installed by pip3

$ pip3 install tensorflow
Collecting tensorflow
  Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

the similar problem happens when I try to install any other packages.

4

1 Answer 1

0

I fixed this by uninstalling python@2 and reinstall [email protected]

$ brew doctor
# it shows a lot warnings about python@2 and [email protected]

$ brew uninstall python@2

$ brew reinstall [email protected]

$ python3 --version
Python 3.8.6

$ pip3 install tensorflow

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.