tensorflow not working in python 3.9 code example

Example 1: pip install tensorflow not working

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

Example 2: install tensorflow for python 3.9.1

python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

Example 3: why tensorflow not working in .py file

##don't execute your file as 
sudo python3 <yourfile.py>

##just use 
python3 <yourfile.py>

## and also *don't* use file names like "imp.py", "tf.py",

Example 4: tensorflow for python 3.9

Not available for version 3.9

Tags:

Misc Example