无法使用pip install tensorflow安装Tensorflow的解决方案

在安装Tensorflow时,按找常用指令pip install tensorflow安装时提示如下错误:

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

根据错误信息,应该是无法从默认地址下载Tensorflow包,遂访问Tensorflow官网地址下载:tensorflow · PyPI

我的安装环境是windows 10,python版本是3.13.2。

下载过程会比较慢,下载完成后使用如下命令安装:

pip install path/to/file.whl

其中,path/to/file.whl表示下载的whl文件路径。

—— 完 ——