fix bug: FileNotFoundError: [Errno 2] No such file or directory: ‘nvcc‘
发布时间:2024年01月24日
1.问题描述
运行的代码设计pycuda,会调用nvcc,确定已经安装cuda toolkit,在terminal中云运行
?
nvcc -V
能得到想到的结果:

但是在 pycharm中运行代码时提示:
FileNotFoundError: [Errno 2] No such file or directory: 'nvcc'
2. 解决办法?
在pycharm中添加cuda toolkit路径 (像在~/.bashrc中那样)

?

文章来源:https://blog.csdn.net/zhangjipinggom/article/details/135820336
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!