当前位置:网站首页>在同一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对应的目录中。
移动后没问题了。
边栏推荐
- 2019 ICPC Asia Yinchuan Regional(水题题解)
- POJ 1012 Joseph
- Simple pedestrian recognition code to 88% accuracy Zheng Zhedong preparation
- Process32first returns false, error x message 24
- R语言ggplot2可视化: 将图例标题(legend title)对齐到ggplot2中图例框的中间(默认左对齐、align legend title to middle of legend)
- 微信小程序图片无法显示时显示默认图片
- js 表格自动循环滚动,鼠标移入暂停
- TabbarController的封装
- OpenCV 表格识别之表格提取(二)
- 开发转测试:从0开始的6年自动化之路...
猜你喜欢

uni-app学习总结

阿里云技术专家郝晨栋:云上可观测能力——问题的发现与定位实践

CSV data file settings of JMeter configuration components

cocoapods的安装和使用

Fiddler抓包工具之移动端抓包

Redis sentinel mode setup under Windows

v-premission添加权限

2019 ICPC Asia Yinchuan Regional(水题题解)

Search module use case writing

After attaching to the process, the breakpoint displays "currently will not hit the breakpoint, and no symbols have been loaded for this document"
随机推荐
开发转测试:从0开始的6年自动化之路...
CSV data file settings of JMeter configuration components
matlab simulink实现模糊pid对中央空调时延温度控制系统控制
Android implements the caching mechanism and caches multiple data types
MFC handy notes
Use of OpenCV class
Malloc failed to allocate space and did not return null
keepalived 实现mysql自动故障切换
选择器的使用
el-table实现增加/删除行,某参数跟着变
Gauss elimination for solving XOR linear equations
QT handy notes (III) use qtcharts to draw a line chart in VS
(二)面扫描仪与机械臂的手眼标定(眼在手外:九点标定)
asp.net 使用redis缓存
php执行shell脚本
官方颁发的SSL证书与自签名证书结合实现网站双向认证
Force deduction brush questions, sum of three numbers
Fiddler packet capturing tool for mobile packet capturing
Add DLL
Simple pedestrian recognition code to 88% accuracy Zheng Zhedong preparation