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

How to register the ncc variable at ncc/__init__.py.? #12

Open
rebel-ly opened this issue Jun 13, 2022 · 6 comments
Open

How to register the ncc variable at ncc/__init__.py.? #12

rebel-ly opened this issue Jun 13, 2022 · 6 comments

Comments

@rebel-ly
Copy link

Hello, I have build and install all the required libraries. But when i try to run the 'pip install --editable ./' this command, it return the error as follow picture. I guess the reason is not register the ncc variable at 'ncc/init.py'. Thus, i want to know how to register it . on the other , if is caused by another reasons, please tell me!!

image

image
Thanks!

@Best-Eminem
Copy link

I have the same question

@whatsmyname
Copy link
Collaborator

please try to install with python setup.py build_ext --inplace in the repo directory.

@rebel-ly
Copy link
Author

it is still return the same error 'status 1'
image
image

@whatsmyname
Copy link
Collaborator

Sorry, I have never met this problem before. But from your error logs (/usr/local/cuda/bin/nvcc, no such file or directory), I think that you probably added the NVCC path into $PYTHONPATH, which is in-executable.

Solution:

  1. Please ensure you can run nvcc -V. If it fails, please reinstall CUDA (time-consuming, I recommend the 2nd solution). Otherwise, reinstall NaturalCC.
  2. Or install CUDA with conda install cudatoolkit. We developed this repo under such an environment.

@rebel-ly
Copy link
Author

rebel-ly commented Jun 13, 2022

image
The running for 'nvcc -V' is satisfied.
o(╥﹏╥)o

@3usi9
Copy link
Collaborator

3usi9 commented Jul 9, 2022

It seems the ninja build tool is missing which is required for C++ source compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants