如何使用pip安装tensorflow 1.12.0版

如何使用pip安装tensorflow 1.12.0版,tensorflow,pip,Tensorflow,Pip,我需要特定的tensorflow gpu版本1.12.0用于我的应用程序,因为我的系统中有cuda-9。我可以找到tensorflow cpu的whl文件,但找不到tensorflow gpu的whl文件。您可以使用以下方法: pip3 install tensorflow-gpu==1.12.0 python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0

我需要特定的tensorflow gpu版本1.12.0用于我的应用程序,因为我的系统中有cuda-9。我可以找到tensorflow cpu的whl文件,但找不到tensorflow gpu的whl文件。

您可以使用以下方法:

pip3 install tensorflow-gpu==1.12.0
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

如果您的python版本兼容,您还可以使用:

pip3 install tensorflow-gpu==1.12.0
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

欢迎使用StackOverflow,请注意:这样做会引发错误“找不到满足tensorflow gpu==1.12.0要求的版本”,因为pip的最新版本指向tensorflow-gpu-1.13,仅适用于Python 64位2.7、3.3、3.4、3.5、3.6(适用于Linux),适用于Python 64位3.5和3.6(适用于w64)。不适用于32位Python,不适用于Python 3.7。是第一个可用于Python3.7 64位的。