ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory
时间: 2023-09-24 20:13:20 浏览: 203
该错误是由于找不到`libcudart.so.11.0`共享对象文件所导致的。在引用和中提到了相同的错误信息。为了解决这个问题,可以按照引用中的解决办法进行操作。首先,使用终端进入到`$CONDA_PREFIX`目录下,然后创建一个名为`env_vars.sh`的文件,并在文件中添加`export LD_LIBRARY_PATH="$CONDA_PREFIX/lib"`的内容。这样做的目的是将`LD_LIBRARY_PATH`环境变量设置为`$CONDA_PREFIX/lib`,以便系统能够正确找到所需的共享对象文件。这样,当您再次运行测试案例时,应该就不会再出现`ImportError`的错误了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory](https://blog.csdn.net/qq_41982466/article/details/129202110)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [DEBUG | mmdetection报错ImportError: libcudart.so.11.0: cannot open shared object file](https://blog.csdn.net/qq_36810398/article/details/116449276)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文