Win10 使用conda配置tensorflow-gpu环境

配一次环境还是想着记录一下吧,真的心力交瘁,希望自己少配环境,多动脑子看代码改代码。

一、conda换源

直接创建虚拟环境太慢,需要换国内源。
清华大学开源镜像站 Anaconda 镜像使用帮助

二、创建虚拟环境

conda create -n tfgpu python=3.9

三、安装相关包

pip install --ignore-installed --upgrade tensorflow-gpu
conda install cudatoolkit=11.2 cudnn -c conda-forge

pip install scikit-learn
pip install numpy matplotlib pandas
pip install ipykernel --upgrade

四、cuda问题

程序运行问题:Could not load dynamic library ‘cudart64_110.dll‘; dlerror: cudart64_110.dll not found解决方案

文件下载网址
随便下载一个
将dll解压放在C:\Windows\System32\

五、其他

遇到问题解决问题,少摆烂,去努力解决它,多动脑子。

猜你喜欢

转载自blog.csdn.net/weixin_62501745/article/details/128553527