[英]Tensorflow can't find GPU
My apologies as there's a million questions out there like this, but none of them seem to answer mine. 我很抱歉,像这样有上百万个问题,但似乎没有一个回答我。 I'm trying to re-install Tensorflow so that it uses my GPU.
我正在尝试重新安装Tensorflow,以便它使用我的GPU。
I'm running: 我在跑:
The CUDA v10.0 folder, the \\extras\\CUPTI\\libx64 and the \\include folder are all in my PATH, also CUDAPATH is as well as CUDA_PATH is defined) CUDA v10.0文件夹,\\ extras \\ CUPTI \\ libx64和\\ include文件夹都在我的PATH中,还定义了CUDAPATH以及CUDA_PATH)
Yet, with pip install tensorflow
it only finds my CPU (using: 然而,通过
pip install tensorflow
它只能找到我的CPU(使用:
from tensorflow.python.client import device_lib
device_lib.list_local_devices()
And I can't seem to be able to import tensorflow if I 我似乎无法导入tensorflow
pip uninstall tensorflow
pip install tensorflow-gpu
python
import tensorflow
ModuleNotFoundError: No module named 'tensorflow'
Try installing Tensorflow again with option --ignore-installed such as: 尝试使用选项--ignore-installed重新安装Tensorflow,例如:
pip install tensorflow-gpu==2.0.0-alpha0 --ignore-installed pip install tensorflow-gpu == 2.0.0-alpha0 --ignore-installed
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.