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

Failed to build installable wheels for some pyproject.toml based projects (gridencoder) #201

Open ShanLanFuSheng opened 4 months ago

ShanLanFuSheng commented 4 months ago

Hello, I had trouble installing gridcoder. When I run pip install. ,then I get the following error: error1

error2

liujie-zheng commented 4 months ago

Did you check your nvcc version? I had the same issue. My pytorch-cuda version was 11.7 while my nvcc version was 11.3. My fix was updating nvcc to 11.7.

ShanLanFuSheng commented 4 months ago

嗯嗯,我后面在服务器上跑了,用的是Ubuntu环境,然后就解决了我的问题,可能是Windows不行?具体原因我没找到,但换了Ubuntu就好了

山岚浮生 @.***

 

------------------ 原始邮件 ------------------ 发件人: "ashawkey/torch-ngp" @.>; 发送时间: 2024年7月12日(星期五) 晚上10:53 @.>; @.**@.>; 主题: Re: [ashawkey/torch-ngp] Failed to build installable wheels for some pyproject.toml based projects (gridencoder) (Issue #201)

Did you check your nvcc version? I had the same issue. My pytorch-cuda version was 11.7 while my nvcc version was 11.3. My fix was updating nvcc to 11.7.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

fuweipeng commented 2 months ago

Processing methods in Win10 environment: Open setup. py Modify the last set of parameters: 'build_ext': BuildExtension Change to: 'build_ext': BuildExtension.with_options(use_ninja=False)

For more questions about 3D environment dependencies, please refer to my blog post