简体   繁体   English

如何通过 conda for Python 3.10.* 安装 Tensorflow?

[英]How to install Tensorflow via conda for Python 3.10.*?

I am using miniconda, v4.13.0, I can install Tensorflow using conda install tensorflow to my conda environment if its Python version 3.9.* However I would like to use Python 3.10.*我正在使用 miniconda,v4.13.0,如果 Python 版本为 3.9,我可以使用 conda install tensorflow 将 Tensorflow conda install tensorflow到我的 conda 环境中。* 但是我想使用 Python 3.10。*

If the Python version is 3.10.* in my conda environment then command conda install tensorflow gives the specification incompatibility error:如果我的 conda 环境中的 Python 版本是 3.10.*,那么命令conda install tensorflow会给出规范不兼容错误:

  • tensorflow -> python[version='3.5.张量流-> python [版本='3.5。 |3.6. |3.6。 |>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|3.8. |>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|3.8。 |3.7. |3.7。 |3.9.*'] |3.9.*']

Question问题

Is there any way to install Tensorflow via conda where the Python version is 3.10.*?有没有办法通过 Python 版本为 3.10.* 的 conda 安装 Tensorflow?

You can find here tensorflow github PR你可以在这里找到 tensorflow github PR

https://github.com/tensorflow/addons/pull/2635 https://github.com/tensorflow/addons/pull/2635

You can use the below command to install TensorFlow using python 3.10:您可以使用以下命令使用 python 3.10 安装TensorFlow

conda create --name tf python=3.10
conda activate tf

Please check this link for reference.请检查链接以供参考。

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

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