![](/img/trans.png)
[英]Is there a problem with github and Python 3.8? Why can't I run this code?
[英]Why doesn't tensorflow run on Python 3.8?
我尝试在运行 Python 3.8 的 Mac 上安装 TensorFlow,但在尝试验证其安装时遇到以下错误:
module 'tensorflow' has no attribute 'random'
我现在已经将 Python 降级到 3.6.0 并且它工作正常。 Python 3.8
中有什么阻碍了 TensorFlow?
在此链接中: https ://www.tensorflow.org/install/pip 您可以看到 Tensorflow 仅在 Python 3.7 之前受支持。
系统要求
-Python 3.5–3.7
-pip 19.0 或更高版本(需要 manylinux2010 支持)
-Ubuntu 16.04 或更高版本(64 位)
-macOS 10.12.6 (Sierra) 或更高版本(64 位)(不支持 GPU)
-Windows 7 或更高版本(64 位)(仅限 Python 3)
-Raspbian 9.0 或更高版本
-GPU 支持需要支持 CUDA® 的卡(Ubuntu 和 Windows)
在页面的最后你可以看到什么是 tensorflow 支持的 python 包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.