Hyu*_*Lee 6 python pip tensorflow
我有理由应该使用 Tensorflow 1.x 版本,但它返回一个错误消息:
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15.2 (from versions: 2.2.0.rc1 ~~~~~
ERROR: No matching disribution found for tensorflow==1.15.2
Run Code Online (Sandbox Code Playgroud)
我也尝试过 .whl 安装,但最新的 Tensorflow 1.15.2 支持 cp37,我不能再使用它了。
pip 或 pypi 不再支持 tensorflow 1.x 吗?或者我应该降级 python(3.8 > 3.7) 并使用 .whl 文件安装 Tensorflow?
【系统环境】Ubuntu 20.04 LTS Python 版本:3.8.2 pip 版本:20.0.2
谢谢。
根据 tensorflow 安装指南,tensorflow 可在 Python 3.5-3.7 上使用,您使用的是较新版本的 Python。
Tensorflow现在支持Python 3.8,但Python 3.8支持需要
此外,GPU支持需要支持CUDA 的卡(Ubuntu 和 Windows)
您可以使用以下命令检查 Python 和 pip 版本:
python --version | python3 --version
Out: Python 3.8.2
pip --version | pip3 --version
Out: pip 20.1.1
Run Code Online (Sandbox Code Playgroud)
您可以使用以下命令升级您的 pip:
pip install --upgrade pip
Run Code Online (Sandbox Code Playgroud)
可以在此链接上找到更多信息:Install TensorFlow with pip