fix bug: FileNotFoundError: [Errno 2] No such file or directory: ‘nvcc‘

1.问题描述
运行的代码设计pycuda,会调用nvcc,确定已经安装cuda toolkit,在terminal中云运行
 

nvcc -V

能得到想到的结果:

但是在 pycharm中运行代码时提示:
FileNotFoundError: [Errno 2] No such file or directory: 'nvcc'

2. 解决办法 
在pycharm中添加cuda toolkit路径 (像在~/.bashrc中那样)

 

相关推荐

  1. 作业2.2

    2024-01-25 17:54:01       48 阅读
  2. <span style='color:red;'>2</span>.<span style='color:red;'>2</span>作业

    2.2作业

    2024-01-25 17:54:01      54 阅读
  3. 2.2作业

    2024-01-25 17:54:01       46 阅读
  4. 假期作业 2.2

    2024-01-25 17:54:01       58 阅读
  5. 2024/2/2

    2024-01-25 17:54:01       51 阅读
  6. 作业2024/2/2

    2024-01-25 17:54:01       53 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-25 17:54:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-25 17:54:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-25 17:54:01       87 阅读
  4. Python语言-面向对象

    2024-01-25 17:54:01       96 阅读

热门阅读

  1. windows环境下设置redis在后台运行

    2024-01-25 17:54:01       64 阅读
  2. LeetCode69. Sqrt(x)

    2024-01-25 17:54:01       52 阅读
  3. 代码随想录算法训练营29期Day29|LeetCode 491,46,47

    2024-01-25 17:54:01       61 阅读
  4. 数据结构刷题笔记

    2024-01-25 17:54:01       57 阅读
  5. 杂七杂八的命令

    2024-01-25 17:54:01       57 阅读
  6. 【Ubuntu】systemctl 命令

    2024-01-25 17:54:01       59 阅读
  7. Vue3全局组件和自定义指令

    2024-01-25 17:54:01       64 阅读
  8. Unity串口通信教程:基础知识和实践指南

    2024-01-25 17:54:01       60 阅读
  9. 阿里云对象存储(OSS)服务

    2024-01-25 17:54:01       62 阅读
  10. Vue 中如何模块化使用 Vuex

    2024-01-25 17:54:01       54 阅读