安装旧版本的 Tensorflow GPU

Fel*_*lox 4 python windows gpu pip tensorflow

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

pip install tensorflow-gpu==1.4.0
Run Code Online (Sandbox Code Playgroud)

我收到了一个类似其他帖子的错误, 暗示没有 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
Run Code Online (Sandbox Code Playgroud)

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

Fly*_*ler 14

如果你去的PyPI页tensorflow 1.4,你可以看到,只有whl文件备份到蟒蛇3.6可用。我猜你要么使用 3.7 要么 3.8。这就是为什么

pip install tensorflow-gpu==1.4.0
Run Code Online (Sandbox Code Playgroud)

不适合你。除了 2.7、3.3、3.4、3.5、3.6 之外,根本没有tensorflow-gpuPython 版本的候选安装

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

创造环境

创建一个正在使用的环境,python 3.6然后pip install像您最初打算的那样使用

conda create -n py36 python=3.6
conda activate py36
pip install tensorflow-gpu==1.4.0
Run Code Online (Sandbox Code Playgroud)

尝试使用您的版本的频道

您可以使用网站上搜索功能来查找提供您的特定版本的频道,对于1.4,您应该能够:

conda install -c cjj3779 tensorflow-gpu
Run Code Online (Sandbox Code Playgroud)

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