简体   繁体   中英

Why doesn't tensorflow run on Python 3.8?

I tried installing TensorFlow on my Mac, running Python 3.8 and was stumped with the following error upon trying to verify its installation:

module 'tensorflow' has no attribute 'random'

I've now downgraded Python to 3.6.0 and it's working correctly. What's in Python 3.8 that was blocking TensorFlow?

In this link: https://www.tensorflow.org/install/pip you can see that Tensorflow is only supported till python 3.7 as of now.

System requirements
-Python 3.5–3.7
-pip 19.0 or later (requires manylinux2010 support)
-Ubuntu 16.04 or later (64-bit)
-macOS 10.12.6 (Sierra) or later (64-bit) (no GPU support)
-Windows 7 or later (64-bit) (Python 3 only)
-Raspbian 9.0 or later
-GPU support requires a CUDA®-enabled card (Ubuntu and Windows)

and at the last of page you can see what are the supported python packages with tensorflow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM