[Python] Tensorflow 2.0 did not support Python 3.8, so the story of downgrading Python

environment

Mac OS Catalina 10.15.7 Spyder 4.1.4 Anaconda 3 Python 3.8.3

What i did

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

[Python] Tensorflow 2.0 did not support Python 3.8, so the story of downgrading Python
The story of Python and the story of NaN
The story that `while queue` did not work in python
The story of downgrading the version of tensorflow in the demo of Mask R-CNN.
The story that the version of python 3.7.7 was not adapted to Heroku
The story of manipulating python global variables
Python http.server did not support Range Request
The story of low learning costs for Python
Image processing? The story of starting Python for
The story of reading HSPICE data in Python
the zen of Python
The story of Python without increment and decrement operators.
Let's break down the basics of TensorFlow Python code
The story of FileNotFound in Python open () mode ='w'
Not being aware of the contents of the data in python
The story that yapf did not work in vscode
The story of automatic language conversion of TypeScript / JavaScript / Python
The story of building Zabbix 4.4
The story of implementing the popular Facebook Messenger Bot with python
[Apache] The story of prefork
The story of how the Python bottle worked on Sakura Internet
The story of introducing jedi (python auto-completion package) to emacs
About the ease of Python
Grep so that grep does not appear at the time of grep
The story of debugging in the local environment because the compilation did not work with Read the Docs
The story of rubyist struggling with python :: Dict data with pycall
Python error support note: "... does not support argument 0 of type float ..."
The websocket of toio (nodejs) and python / websocket do not connect.
About the features of Python
The Power of Pandas: Python
The story of exclude / include that Serverless Framework beginners misunderstood (did not understand) in beginner Pythonista
The story of not being able to run pygame with pycharm
March 14th is Pi Day. The story of calculating pi with python
A story that struggled to handle the Python package of PocketSphinx
The story of making a standard driver for db with python.
The story of running python and displaying the results without closing vim
The story of the release work of the application that Google does not tell
The problem that the version of Vue CLI did not go up
[Super basics of Python] I learned the basics of the basics, so I summarized it briefly.
The story of making a module that skips mail with python
[Python] The stumbling block of import
First Python 3 ~ The beginning of repetition ~
The story of participating in AtCoder
Existence from the viewpoint of Python
pyenv-change the python version of virtualenv
Change the Python version of Homebrew
The story of the "hole" in the file
[Python] Understanding the potential_field_planning of Python Robotics
Review of the basics of Python (FizzBuzz)
The story of remounting the application server
About the basics list of Python basics
Story of power approximation by Python
The story of writing a program
Learn the basics of Python ① Beginners
Did not change from Python 2 to 3
The story of making a university 100 yen breakfast LINE bot with Python
Processing when the key input of Python pygame does not go well.
The story of trying to reconnect the client
Check the behavior of destructor in Python
The story of an error in PyOCR
[Python3] Understand the basics of Beautiful Soup