【问题标题】:Could not build wheels for pycuda无法为 pycuda 制造轮子
【发布时间】:2022-07-21 21:42:10
【问题描述】:

在ubuntu上安装pip pycuda时收到错误如下:

command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycuda
Failed to build pycuda
ERROR: Could not build wheels for pycuda, which is required to install pyproject.toml-based projects

【问题讨论】:

    标签: python pip pycuda


    【解决方案1】:

    我解决了这个问题:

    对于 Python 2.x 使用:

    sudo apt-get install python-dev
    

    对于 Python 2.7 使用:

    sudo apt-get install libffi-dev
    

    对于 Python 3.x 使用:

    sudo apt-get install python3-dev
    

    或者对于特定版本的 Python 3,将 x 替换为中的次要版本

    sudo apt-get install python3.x-dev
    

    【讨论】:

      猜你喜欢
      • 2021-11-17
      • 1970-01-01
      • 1970-01-01
      • 2020-12-06
      • 2021-06-20
      • 1970-01-01
      • 2019-02-22
      • 2020-08-16
      • 2021-11-27
      相关资源
      最近更新 更多