ashawkey / torch-ngp

A pytorch CUDA extension implementation of instant-ngp (sdf and nerf), with a GUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please how to solve this problem?

LearnToStick opened this issue · comments

commented

image

commented

my enviroment is windows,cu117,cp38,on python virtual enviroment.

Do you konw how to solve it? I had the same problem.

I solved this problem by installing Microsoft Visual Studio. Because I found that the place the error happening(backend.py) was looking for cl.exe
But I'm not sure this is a reasonable approach.
image

Hi, have you guys tried the below code block from ReadMe page?
Mine is Ubuntu, but i solved the same problem by the below build block
Hope it works!

+)refers to @Visytudz, installing VS code can auto build raymarching folders, too.

bash scripts/install_ext.sh

# if you want to install manually, here is an example:
cd raymarching
python setup.py build_ext --inplace # build ext only, do not install (only can be used in the parent directory)
pip install . # install to python path (you still need the raymarching/ folder, since this only install the built extension.)```

my enviroment is windows,cu117,cp38,on python virtual enviroment.

解决了吗