【发布时间】:2019-09-16 13:05:38
【问题描述】:
我的应用程序需要特定的 tensorflow-gpu 版本 1.12.0,因为我的系统中有 cuda-9。我能够找到 tensorflow cpu 的 whl 文件,但找不到 tensorflow-gpu 的 whl 文件。
【问题讨论】:
标签: tensorflow pip
我的应用程序需要特定的 tensorflow-gpu 版本 1.12.0,因为我的系统中有 cuda-9。我能够找到 tensorflow cpu 的 whl 文件,但找不到 tensorflow-gpu 的 whl 文件。
【问题讨论】:
标签: tensorflow pip
语法:
python -m pip install --upgrade wheel-URL
从下面选择wheel-URL:
对于 Windows:
Python 3.6 CPU-only >> 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-only >> 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
【讨论】:
如果你的python版本兼容,你也可以用这个:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
【讨论】:
你可以用这个:
pip3 install tensorflow-gpu==1.12.0
【讨论】: