python - pip 找不到 tensorflow 2.0 或 2.1
问题描述
愚蠢的我问这样一个问题(在这里也问过1 , 2)。我尝试在 Ubuntu 系统上为 mask-rcnn 包安装 TensorFlow 2.0 或 2.1,但 pip 找不到我迫切需要的 TensorFlow 版本。你能告诉我为什么 pip 找不到 tf2.0 或 tf2.1 吗?那么如何安装tf2.0或tf2.2呢?
albert@GIGABYTE:~$ pip install tensorflow==2.0
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tensorflow==2.0 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0, 2.5.1, 2.5.2, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.7.0rc0, 2.7.0rc1, 2.7.0)
ERROR: No matching distribution found for tensorflow==2.0
解决方案
tensorflow 2.0和tensorflow 2.1需要 Python 2.7 和 3.4-3.7 但不是更高版本。您的 Python 似乎是更高版本(来自 tensorflow 版本列表,我认为您使用的是 3.8)。降级 Python 或使用更高版本的 tensorflow。
推荐阅读
- python - 实时检查 2 个 QLineEdits 文本
- python - 访问熊猫数据框中的单元格
- python - CUDA 目标的 Numba 和 guvectorize:代码运行速度比预期慢
- vaadin - 为什么 setDefaultErrorHandler 在 vaadin 流程中使我的视图崩溃?
- javascript - 触发 onbeforeunload 事件的所有可能原因是什么?
- python - 在 numpy 数组的副本中交换元素
- php - 通过 CSS 从 PHP 变量中的值设置元素的背景图像
- javascript - Chrome 扩展变量未定义
- rust - Rust 回调:错误:Lifetime 'static required
- javascript - javascript - 将字符串转换为元组数组