【问题标题】:Error: The 'pycuda' distribution was not found and is required by the application错误:未找到“pycuda”发行版,应用程序需要该发行版
【发布时间】:2022-01-23 20:14:23
【问题描述】:

是什么导致了这个错误?

raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycuda' distribution was not found and is required by the application
-------------------------------------------------------------------
PyCUDA ERROR: The context stack was not empty upon module cleanup.
-------------------------------------------------------------------
A context was still active when the context stack was being
cleaned up. At this point in our execution, CUDA may already
have been deinitialized, so there is no way we can finish
cleanly. The program will be aborted now.
Use Context.pop() to avoid this problem.

【问题讨论】:

    标签: python pycuda


    【解决方案1】:

    这个错误是不言自明的。您尝试运行的代码想要使用 pycuda 包,但该包未安装。

    您可以尝试运行 pip install pycuda,最好在 virtuaenv 中运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-28
      • 2021-04-19
      • 2019-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多