python - 安装旧版本的 Tensorflow GPU

标签 python windows tensorflow pip gpu

我试图在 Windows 10 上安装旧版本的 tensorflow gpu:

pip install tensorflow-gpu==1.4.0

我收到类似 this other post 的错误暗示没有windows版本

我想知道是否有办法获取运行 Windows tensorflow 版本的列表

提前致谢

编辑

似乎 tensorflow GPU v1.4.0 在 python 3.7 上不起作用,因此创建另一个环境并将你的 python 版本降级到 3.6 可能会解决这个问题。

通过使用 anaconda 你可以这样做
conda create -n py36 python=3.6
conda activate py36
pip install tensorflow-gpu==1.4.0

请注意,旧版本的 tensorflow 需要另一个旧版本的 CUDA(我必须安装 CUDA 8.0)

最佳答案

如果你去pypi pagetensorflow 1.4 ,你可以看到,只有 whl可以使用高达 python 3.6 的文件。我猜你要么使用 3.7 要么 3.8。这就是为什么

pip install tensorflow-gpu==1.4.0

不适合你。 tensorflow-gpu 根本没有安装候选者。适用于 2.7、3.3、3.4、3.5、3.6 以外的 Python 版本

我认为你有两个选择,因为你提到你有 conda :

创建环境

创建一个使用 python 3.6 的环境然后使用 pip install就像你最初打算的那样
conda create -n py36 python=3.6
conda activate py36
pip install tensorflow-gpu==1.4.0

尝试使用具有您的版本的 channel

您可以使用 search function on the website找到提供您的特定版本可用的 channel ,为 1.4 ,你应该能够做到:
conda install -c cjj3779 tensorflow-gpu

不需要版本规范,因为该 channel 中唯一可用的版本是 1.4

关于python - 安装旧版本的 Tensorflow GPU,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59650012/

相关文章:

windows - 启用 WSL2 的 Docker Desktop 无法在 Windows 10 中启动

ruby - 使用 Ruby 在 Windows 中读取区域位置设置(国家代码)?

python - 使用 Tensorflow,使用神经网络进行 2 类分类

python - tensorflow : Graph is finalized and cannot be modified

python - 加快列转换

python - 来自不同长度字典的箱线图

python - 导入错误 : No module named celery for Celery 3. 1 和 Python 2.7

windows - Windows 是否存在带有标签的程序员的 "document template"?

python - "ImportError: libcublas.so.10.0"仅在使用 GUI 时用于 Tensorflow

python - 在 LZW 中压缩时计数?