首页 > 解决方案 > Error when installing Tensorflow - Python 3.8

问题描述

I'm new to programming and following a course where I must install Tensorflow. The issue is that I'm using Python 3.8 which I understand isn't supported by Tensorflow.

I've downloaded Python 3.6 but I don't know how to switch this as my default version of python.

Would it be best to set up a venv using python 3.6 for my program and install Tensorflow in this venv?

Also, I using Windows and Powershell.

标签: pythontensorflow

解决方案


截至目前,Tensorflow 仅在 python 3.7 之前受支持。你可以在这里查看:https ://www.tensorflow.org/install/pip

但是有一种方法可以在 Python3.8 上安装它,只需运行以下命令即可完成您的工作:

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

该命令适用于 mac 和 windows,我尚未在 Linux 上测试过。


推荐阅读