ILD

using conda install tensorflow
作者:Yuan Jianpeng 邮箱:yuanjp89@163.com
发布时间:2026-4-26 站点:Inside Linux Development

在fedora 43上,python的版本是3.14

$ python --version
Python 3.14.4

使用pip安装tensorflow

$ pip install tensorflow
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

没有匹配版本,因为tensorflow最高只支持3.12,使用conda可以创建一个python环境


$ conda create -n tf python=3.12

然后重启终端,再执行:

$ conda activate tf

它会替换当前shell,使用一个新的环境。可以直接执行命令

$ pip install tensorflow

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.