在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发布于 2022-07-21 13:42:10
我通过这样做解决了这个问题:
对于Python2.x,请使用:
sudo apt-get install python-dev对于Python2.7,请使用:
sudo apt-get install libffi-dev对于Python3.x,请使用:
sudo apt-get install python3-dev或者对于Python 3的特定版本,将x替换为
sudo apt-get install python3.x-devhttps://stackoverflow.com/questions/73067316
复制相似问题