当前位置:网站首页>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点下去。再次调试时就没有问题了!!!!!
边栏推荐
- On the day 25K joined Tencent, I cried
- This is an age of uncertainty
- Common features of ES6
- 机器学习 --- 神经网络
- DFS and BFS concepts of trees and graphs
- Looking back on 2021, looking forward to 2022 | a year between CSDN and me
- CTF stegano practice stegano 9
- 基于TCP的移动端IM即时通讯开发仍然需要心跳保活
- Alibaba cloud ECS uses cloudfs4oss to mount OSS
- Use threejs to create geometry, dynamically add geometry, delete geometry, and add coordinate axes
猜你喜欢
mysql的七种join连接查询
Threejs Internet of things, 3D visualization of farms (I)
Three level linkage demo of uniapp uview u-picker components
Seven join join queries of MySQL
我国算力规模排名全球第二:计算正向智算跨越
How to realize real-time audio and video chat function
Uni app common functions /api
【UNIAPP】系统热更新实现思路
行为感知系统
陇原战“疫“2021网络安全大赛 Web EasyJaba
随机推荐
As soon as I write the code, President Wang talks with me about the pattern all day
Scheduling system of kubernetes cluster
MySQL: view with subquery in the from clause limit
10种寻址方式之间的区别
【虚幻引擎UE】运行和启动的区别,常见问题分析
[understand series after reading] 6000 words teach you to realize interface automation from 0 to 1
lds链接的 顺序问题
[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)
Open graph protocol
Online text line fixed length fill tool
Containerd series - what is containerd?
北京程序员的真实一天!!!!!
TPG x AIDU|AI领军人才招募计划进行中!
25K 入职腾讯的那天,我特么哭了
On the day 25K joined Tencent, I cried
MindFusion. Virtual Keyboard for WPF
The order of LDS links
@The problem of cross database query invalidation caused by transactional annotation
美国5G Open RAN再遭重大挫败,抗衡中国5G技术的图谋已告失败
A real day for Beijing programmers!!!!!