Mac OS Catalina 10.15.7 Spyder 4.1.4 Anaconda 3 Python 3.8.3
When I try to install Tensorflow on Terminal, I get the following error: (As of October 28, 2020)
(abridgement)
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- tensorflow -> python[version='2.7.*|3.7.*|3.6.*|3.5.*']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
(abridgement)
Tensorflow supports up to 3.7 versions of Python, but yours is 3.8. Tells me.
That's why I created a virtual environment for Python 3.7 while referring to this article. [Environment construction Python]
Press the Create button in Enviroments of Anaconda Navigater Name:python37 Package:python3.7 Creation is completed with. ▶ ︎ Press the button to start Terminal and update conda
#update of conda
conda update --all
conda update -n base conda
And install tensorflow
conda install tensorflow
By the way, it doesn't seem very nice to confuse conda with pip. [conda and pip: Danger of mixing]
Start Spyder and enter the following to execute. I was able to import successfully.
import tensorflow
Recommended Posts