当前位置:网站首页>mxnet导入报各种libcudart*.so、 libcuda*.so找不到
mxnet导入报各种libcudart*.so、 libcuda*.so找不到
2022-07-05 04:14:00 【粉粉Shawn】
这真的是一个巨大的坑!!!!!!!
在调试pyCFTracker代码时,发现初始化一直报错,详情如下
OSError: libcudart.so.11.0: cannot open shared object file: No such file or directory

我寻思,没有安装cuda,所以找不到库文件也是正常的,于是跑去NVIDIA官网下载了cuda11.3, 使用runfile安装好以后,继续运行代码,还是报错libcudart.so.11.0无法找到。再经历了查找无数篇博客,并且一一尝试以后, 发现还是无法解决问题。
MXNet或tensorflow缺少libcudart.so.11.0和libcudnn.so.8解决方法_谱写的博客-CSDN博客_libcudnn
OSError: libcudart.so.11.0: cannot open 完美解决_衣带渐宽人憔悴的博客-CSDN博客
Finally!!!!!! 在经过安装-卸载-安装-卸载-安装以后,我终于想到了!既然已经有mxnet兼容版本的cuda, 那会不会是IDE里面使用的环境变量没有更新,导致找不到库文件呢?then,打开了pycharm的环境变量。果然!虽然安装了cuda,也更新了用户级环境变量PATH与LD_LIBRARY_PATH,但是pycharm里面没有同步更新!要手动更新阿同志们。设置方法如下:
1. 依次点击左上角RUN->RUN...->Edit Configuration,进入如下图设置界面,打开环境变量编辑窗口。
2. 找到PATH变量,在PATH变量的值最后添加":/usr/local/cuda/bin"
3. 添加新变量LD_LIBRARY_PATH,将值设置为"/usr/local/cuda/lib64"
4. 一路ok,apply,ok点下去。再次调试时就没有问题了!!!!!




边栏推荐
- lds链接的 顺序问题
- Bit operation skills
- Differences among 10 addressing modes
- A solution to the problem that variables cannot change dynamically when debugging in keil5
- 机器学习 --- 决策树
- How to solve the problem that easycvr changes the recording storage path and does not generate recording files?
- 如何实现实时音视频聊天功能
- [phantom engine UE] only six steps are needed to realize the deployment of ue5 pixel stream and avoid detours! (the principles of 4.26 and 4.27 are similar)
- FFmepg使用指南
- Rome chain analysis
猜你喜欢

Rome链分析

Laravel8 export excel file

蛇形矩阵

【刷题】BFS题目精选

Rust区块琏开发——签名加密与私钥公钥

Threejs Internet of things, 3D visualization of farms (I)

【thingsboard】替换首页logo的方法

Threejs realizes the drawing of the earth, geographical location annotation, longitude and latitude conversion of world coordinates threejs coordinates

Why can't all browsers on my computer open web pages

Use Firefox browser to quickly pick up Web image materials
随机推荐
laravel8 导出Excle文件
MySQL: view with subquery in the from clause limit
Looking back on 2021, looking forward to 2022 | a year between CSDN and me
基于TCP的移动端IM即时通讯开发仍然需要心跳保活
Threejs realizes rain, snow, overcast, sunny, flame
On the day 25K joined Tencent, I cried
长度为n的入栈顺序的可能出栈顺序
如何优雅的获取每个分组的前几条数据
Network layer - forwarding (IP, ARP, DCHP, ICMP, network layer addressing, network address translation)
Threejs implements labels and displays labels with custom styles
Common features of ES6
Is "golden nine and silver ten" the best time to find a job? Not necessarily
机器学习 --- 决策树
小程序中实现文章的关注功能
NetSetMan pro (IP fast switching tool) official Chinese version v5.1.0 | computer IP switching software download
lds链接的 顺序问题
陇原战“疫“2021网络安全大赛 Web EasyJaba
web资源部署后navigator获取不到mediaDevices实例的解决方案(navigator.mediaDevices为undefined)
Summary of scene design
kubernetes集群之调度系统