python - 错误:找不到满足要求的版本 tensorflow==2.1.0 和 No matching distribution found for tensorflow==2.1.0
问题描述
当我运行时,我正在尝试在适用于 Linux 的 Windows 子系统(ubuntu 18.04)上使用“pipenv”
$ pipenv sync
我收到此错误:
[pipenv.exceptions.InstallError]: ['ERROR: Could not find a version that satisfies the requirement
tensorflow==2.1.0 (from -r /tmp/pipenv-gy0uz1a7-requirements/pipenv-glre38t7-requirement.txt (line 1))
(from versions: 2.2.0rc1, 2.2.0rc2)', 'ERROR: No matching distribution found for tensorflow==2.1.0
(from -r /tmp/pipenv-gy0uz1a7-requirements/pipenv-glre38t7-requirement.txt (line 1))']
我按照其他一些说明说我必须安装 tensorflow,所以我安装了 tensorflow
$ pip install --upgrade pip
$ pip install tensorflow==2.1.0
即使在安装 tensorflow 2.1.0 之后,我在运行时仍然遇到同样的错误
$ pipenv sync
我应该怎么做才能解决这个问题?
解决方案
检查你的 python 版本,python 3.8 不支持 TensorFlow 2.1 版本。
推荐阅读
- python - 更新由 sudo 命令安装的 python 包
- c# - 与 HID 兼容设备通信
- python - 如何解决传递依赖 google-resumable-media 的版本不兼容问题?
- python - tf.estimator.Estimator 改变权重
- linux - 你能在 Go 中运行一个独立的程序实例吗?
- python - Python/Regex:如何通过正则表达式模式对字符串进行切片,同时将模式保持在匹配项中?
- ios - 无法将任何子视图添加到 scrollView
- charts - 创建 Google Chart 分组条重叠堆叠条
- ruby-on-rails - fe_sendauth:未提供密码 (PG::ConnectionBad) Docker 容器
- bash - 在bash中重复赋值