heshuting555/PADing

error: command '/usr/bin/nvcc' failed with exit code 1

Closed this issue · 4 comments

你好,在尝试编译项目的时候除了如标题的错误,具体如图所示:
image
我这边安装的环境如下:

Package                 Version
----------------------- ------------------
absl-py                 1.4.0
antlr4-python3-runtime  4.9.3
appdirs                 1.4.4
black                   21.4b2
cachetools              5.3.1
certifi                 2023.5.7
charset-normalizer      3.1.0
click                   8.1.3
cloudpickle             2.2.1
contourpy               1.1.0
cycler                  0.11.0
detectron2              0.6+cu111
fonttools               4.40.0
future                  0.18.3
fvcore                  0.1.5.post20221221
google-auth             2.21.0
google-auth-oauthlib    1.0.0
grpcio                  1.56.0
hydra-core              1.3.2
idna                    3.4
importlib-metadata      6.7.0
importlib-resources     5.12.0
iopath                  0.1.9
kiwisolver              1.4.4
Markdown                3.4.3
MarkupSafe              2.1.3
matplotlib              3.7.1
mypy-extensions         1.0.0
numpy                   1.25.0
oauthlib                3.2.2
omegaconf               2.3.0
packaging               23.1
pathspec                0.11.1
Pillow                  9.5.0
pip                     23.1.2
portalocker             2.7.0
protobuf                4.23.3
pyasn1                  0.5.0
pyasn1-modules          0.3.0
pycocotools             2.0.6
pydot                   1.4.2
pyparsing               3.1.0
python-dateutil         2.8.2
PyYAML                  6.0
regex                   2023.6.3
requests                2.31.0
requests-oauthlib       1.3.1
rsa                     4.9
setuptools              67.8.0
six                     1.16.0
tabulate                0.9.0
tensorboard             2.13.0
tensorboard-data-server 0.7.1
termcolor               2.3.0
toml                    0.10.2
torch                   1.9.0+cu111
torchaudio              0.9.0
torchvision             0.10.0+cu111
tqdm                    4.65.0
typing_extensions       4.6.3
urllib3                 1.26.16
Werkzeug                2.3.6
wheel                   0.38.4
yacs                    0.1.8
zipp                    3.15.0

请问这边能给点解决建议吗

You can follow the installation of Mask2Former!
After that, using pip install -r requirements.txt

When you compile the project,do you install nvidia-cuda?It seems only cuda-toolkit can't work.

请问解决了吗,我也是这个问题,卡好久了。

安装nvidia cuda,然后export cuda_home就好了。