赞
踩
Tensorflow与Python、CUDA、cuDNN的版本对应表_tensorflow版本对应python3.11_Ly.Leo的博客-CSDN博客
Windows安装tensorflow-gpu=1.14.0&CUDA=10.0&cuDNN=7.4 (多版本CUDA共存)_cuda10.0-CSDN博客
win10 查看GPU型号,驱动版本,CUDA版本_查看gpu版本-CSDN博客
打开DOS 命令窗口Win+R,输入cmd
conda create -n tensorflow-gpu1.14 python==3.6
conda activate tensorflow-gpu1.14
pip install包名
pip install numpy matplotlib Pillow scikit-learn pandas -I https://pypi.tuna.tsinghua.edu.cn/simple
出现错误
安装TensorFlow报错:No matching distribution found for tensorflow-CSDN博客
解决方法:
使用命令:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 包名
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn numpy matplotlib Pillow scikit-learn pandas
阿里云:http://mirrors.aliyun.com/pypi/simple/
- pip install tensorflow==1.14.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
-
- pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow==2.0.0
- pip install tensorflow-gpu==1.14.0
-
- pip install -i http://mirrors.aliyun.com/pypi/simple/--upgrade tensorflow-gpu==1.14.0
-
- pip3 install -i https://pypi.douban.com/simple/ --upgrade tensorflow-gpu==1.14.0
激活python
输入测试语句:
- Import tensorflow as tf
- tf.__version__
- tf.test.is_gpu_available()
- tensorflow_test.is_gpu_available()
返回值为 True,则安装正确。
四、envi环境测试
测试出来有问题,想哭啦
*** Training a TensorFlow Mask Model ***
RuntimeError: A patchesPerBatch size of 3 is too large based on the available memory. Error: A patchesPerBatch size of 3 is too
large based on the available memory. Traceback (most recent call last):
ERROR: Model could not be trained.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。