我的应用程序需要特定的tensorflow-gpu版本1.12.0,因为我的系统中有cuda-9。我能够找到tensorflow cpu的whl文件,但无法找到用于tensorflow-gpu的文件。
答案 0 :(得分:3)
您可以使用:“ pip3 install tensorflow-gpu == 1.12.0”
答案 1 :(得分:2)
如果你的python版本兼容,你也可以使用这个:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
答案 2 :(得分:0)
语法:
python -m pip install --upgrade wheel-URL
从下面选择wheel-URL
:
对于 Windows:
仅 Python 3.6 CPU >> https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.12.0-cp36-cp36m-win_amd64.whl
Python 3.6 GPU 支持 >> https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.12.0-cp36-cp36m-win_amd64.whl
对于 Linux:
仅 Python 2.7 CPU >> https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.12.0-cp27-none-linux_x86_64.whl
Python 2.7 GPU 支持 >> https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.12.0-cp27-none-linux_x86_64.whl
仅 Python 3.6 CPU >> https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.12.0-cp36-cp36m-linux_x86_64.whl
Python 3.6 GPU 支持 >> https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.12.0-cp36-cp36m-linux_x86_64.whl
macOS(仅限 CPU)
Python 2.7 >> https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py2-none-any.whl
Python 3.4、3.5、3.6 >> https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl