ashawkey / torch-ngp

A pytorch CUDA extension implementation of instant-ngp (sdf and nerf), with a GUI.
MIT License
2.11k stars 275 forks source link

Please how to solve this problem? #160

Open LearnToStick opened 1 year ago

LearnToStick commented 1 year ago

image

LearnToStick commented 1 year ago

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

lixiangweiabc commented 1 year ago

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

Visytudz commented 1 year ago

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

SeonjiPark commented 1 year ago

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.)```
Benton-J commented 1 year ago

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

解决了吗