python - 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.
解决方案
截至目前,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 上测试过。
推荐阅读
- python - python - 如何使用pandas和/或plotly在Python中每x行创建新表?
- c - execl 找不到 vim
- javascript - 滚动时到达不同的div元素后如何更改导航图像
- c# - 检查文本框中的否定输入
- wordpress - 如何根据 woocommerce 中的订单总数更改电子邮件发件人?
- javascript - 如何将嵌套对象“解包”为数组?
- python - 使用 ansible-runner 作为 Python 模块接口到 Ansible 错误:RunnerConfig' 对象没有属性 'command'
- arrays - Python函数有一个新的数组
- docker - 无法在 snap docker 19.03 中启用实验性
- typescript - Jest Matcher 错误:收到的值必须是承诺或返回承诺的函数