简体   繁体   English

tensorflow w/ python 3.9(在 Fedora 33 中)?

[英]tensorflow w/ python 3.9 (in Fedora 33)?

I installed Fedora 33 and it uses Python 3.9我安装了 Fedora 33,它使用 Python 3.9

I don't see any builds of Tensorflow w/ Python 3.9 in pypi or google .我在 pypi 或google中没有看到任何带有 Python 3.9 的 Tensorflow 版本。

Is this because TF needs to be ported to Python 3.9... or because no one bothered to build it?这是因为 TF 需要移植到 Python 3.9... 还是因为没有人愿意构建它?

IE, should I try to build TF w/ Python 3.9... or should I make a python 3.8 venv and install from pypi? IE,我应该尝试使用 Python 3.9 构建 TF ...还是应该制作 python 3.8 venv 并从 pypi 安装?

Thanks谢谢

Ran into the same issue on my system.在我的系统上遇到了同样的问题。 The latest Python currently supported by Tensorflow is 3.8. Tensorflow目前支持的最新Python是3.8。 You can get your tensorflow code working again by running:您可以通过运行让您的 tensorflow 代码再次运行:

dnf install python3.8 dnf安装python3.8

Once you have that installed, you can get pip working again by running:安装完成后,您可以通过运行以下命令让 pip 再次工作:

python3.8 -m ensurepip --user python3.8 -m ensurepip --user

Also, the packages you previously installed through pip should be available at:此外,您之前通过 pip 安装的软件包应该可以在以下位置获得:

~/.local/lib/python3.x/site-packages/ ~/.local/lib/python3.x/site-packages/

The following release notes were helpful for me: Fedora 33 Release Notes on Python以下发行说明对我很有帮助: Fedora 33 Release Notes on Python

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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