Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error during install #3

Closed
jinan-zhou opened this issue Feb 6, 2021 · 3 comments
Closed

error during install #3

jinan-zhou opened this issue Feb 6, 2021 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jinan-zhou
Copy link

jinan-zhou commented Feb 6, 2021

Thank you for the amazing repo! This fucntion is absolutely a missing part from PyTorch.

However, I encountered the following error during install:

Traceback (most recent call last):
  File "/home/username/anaconda3/envs/ai/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build
    env=env)
  File "/home/username/anaconda3/envs/ai/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

Does anyone have any ideas how to deal with it?

@lizhihao6
Copy link
Owner

I'm afraid this is a problem caused by the update of the header file caused by the pytorch version update, which I also encountered in pytorch 1.7, and I haven't found a good solution for now.

@lizhihao6 lizhihao6 added bug Something isn't working help wanted Extra attention is needed labels Apr 12, 2021
@lizhihao6 lizhihao6 assigned lizhihao6 and unassigned lizhihao6 Apr 12, 2021
@lizhihao6 lizhihao6 pinned this issue Apr 12, 2021
@hurjunhwa
Copy link

Have you tried using different cudatoolkit version when installing pytorch?
I got the same error with CUDA11.1 + Pytorch 1.8.1, but changing to CUDA 10.1 + Pytorch 1.8.1 solved the problem.

@lizhihao6
Copy link
Owner

Yeah, it seems like incompatibility of the CUDA version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants