How to register the ncc variable at ncc/__init__.py.?
rebel-ly opened this issue · 6 comments
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!!
I have the same question
please try to install with python setup.py build_ext --inplace
in the repo directory.
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:
- Please ensure you can run
nvcc -V
. If it fails, please reinstall CUDA (time-consuming, I recommend the 2nd solution). Otherwise, reinstall NaturalCC. - Or install CUDA with
conda install cudatoolkit
. We developed this repo under such an environment.
It seems the ninja
build tool is missing which is required for C++ source compilation.