为什么python无法从pypi下载最新版本的软件包?

时间:2021-03-15 17:57:11

标签: python pip

我要安装tensorflow2.3.0,然后运行命令

pip3 install tensorflow==2.3.0

enter image description here

然而,如结果所示,没有找到 tensorflow==2.3.0 的匹配分布。我看pypi的时候,明明2.0.0b1版本之后发布了几十个版本,但是为什么我的pip3只搜索0.12.1到2.0.0b1的范围,如上图所示?

enter image description here

3 个答案:

答案 0 :(得分:1)

“匹配”是指 w.r.t.到您的 Python 版本和操作系统(例如 Linux)。你有什么 Python 版本?试试 Python 3.7 左右。

答案 1 :(得分:0)

您必须检查 Python 版本:

py

在外壳中! 并相应地选择您的 TensorFlow 版本!

<块引用>

您必须检查的内容:

  1. Python 版本最新! (如果没有,则安装它)
  2. 操作系统
  3. Tensor Flow Latest 是否与它们兼容!

答案 2 :(得分:0)

我认为您使用的是不受支持的 Python 版本:https://www.tensorflow.org/install,受支持的版本是:Python 3.5–3.8

enter image description here

更多信息在这里:

https://www.tensorflow.org/install/source#cpu

相关问题