当前位置:网站首页>在同一conda环境下先装Pytroch后装TensorFlow
在同一conda环境下先装Pytroch后装TensorFlow
2022-07-26 09:37:00 【Dust_Evc】
环境信息:
windows10
NIVDIA CUDA:11.6
python: 3.9
CUDNN:8.3
自己先在上述环境装了pytorch_1.11.0 + cuda_11.3。
后因需求继续安装了tensorflow_gpu-2.9.0:
在官网https://www.tensorflow.org/install/pip#windows按说明下载Python 3.9 GPU support安装包https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.9.0-cp39-cp39-win_amd64.whl,利用pip install tensorflow_gpu-2.9.0-cp39-cp39-win_amd64.whl安装上。
装完执行测试语句
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
报错 Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found:
W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
W tensorflow/core/common_runtime/gpu/gpu_device.cc:1850] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
报错原因:之前装CUDNN,可能是新版安装包是exe包而不是压缩包(也可能是没下压缩包),直接把bin、lib、include装在了C:\Program Files\NVIDIA\CUDNN\v8.3下,没有把CUDNN的bin、lib、include目录中的文件移动到CUDA对应的目录中。
移动后没问题了。
边栏推荐
猜你喜欢
随机推荐
小程序纪录
antd TreeSelect获取父节点的值
malloc分配空间失败,并且不返回null
2020-12-29
The problem of accessing certsrv after configuring ADCs
2020-12-29
asp.net 使用redis缓存(二)
The provincial government held a teleconference on safety precautions against high temperature weather across the province
Jmeter配置元件之CSV数据文件设置
The whole process of server environment configuration
添加dll
服务器、客户端双认证(2)
面试题目大赏
Android implements the caching mechanism and caches multiple data types
V-for dynamically sets the SRC of img
JS 连等赋值操作
注册模块用例编写
copyTo
Gauss elimination for solving XOR linear equations
QT handy notes (III) use qtcharts to draw a line chart in VS