【发布时间】:2022-08-06 00:16:57
【问题描述】:
我目前正在尝试安装 Tensorflow 1.15.0,但我当前的 Python 版本是 3.8.10,它不支持该版本的 Tensorflow。我使用以下命令安装了Python3.7:
sudo apt install python3.7
并使用了来自 post 的这些命令:
pip3 install ipykernel --upgrade
python3 -m ipykernel install --user
但是当我跑步时
!python3 --version
它仍然显示 3.8.10 和 Tensorflow 1.15.0 无法安装并出现以下错误:
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu==1.15.0 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1)
ERROR: No matching distribution found for tensorflow-gpu==1.15.0
我不愿意卸载 Python 3.8,因为上次我这样做完全破坏了我的操作系统并迫使我重新安装整个东西。我该如何解决这个问题?我在 Ubuntu 20.04
-
也许你应该在
Python 3.7中安装jupyter和 -pip3.7 install jupyter- 使用python3.7 -m jupyter运行它。 -
@omar 我按照教程进行操作,但现在 jupyter 在尝试导入任何模块时给了我这个错误
ModuleNotFoundError: No module named...,尽管我已经安装了这些模块。 -
如果您安装不同版本的所有库,新版本最多不显示,您应该下载整个库
标签: python tensorflow jupyter-notebook