Open avrum opened 1 year ago
I meet the same problem. And my sys info is : Win 10 VS 2019 CUDA 11.3
I meet the same problem. And my sys info is : Win 10 VS 2019 CUDA 11.3
i have same error,can you help me
Had the same issue, it's mostly related to Visual Studio not setting up environment variable during install. Before installing tiny-cuda-nn, in the same anaconda command prompt windows run vcvars64.bat (usually it's in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build) which sets VC env vars correctly. Then proceed to install tiny-cuda-nn (with pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch as described in the readme)
Also check of you have ninja installed somewhere, (in the command prompt use "where ninja" to check if you it can be found) it gave me problem with tiny-cuda-nn as it defaults to it if it's found, I removed it from my path and all was fine.
I tried method above and didn't work. Then I change powershell to cmd and it works :)
Had the same issue, it's mostly related to Visual Studio not setting up environment variable during install. Before installing tiny-cuda-nn, in the same anaconda command prompt windows run vcvars64.bat (usually it's in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build) which sets VC env vars correctly. Then proceed to install tiny-cuda-nn (with pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch as described in the readme)
Thanks! It works for me !!
@davidebaltieri31 thx, worked for me too!
Thanks, this worked for me! I was getting the same error message about the "algorithm" file not being found.
@davidebaltieri31 Had the same issue, it's mostly related to Visual Studio not setting up environment variable during install. Before installing tiny-cuda-nn, in the same anaconda command prompt windows run vcvars64.bat (usually it's in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build) which sets VC env vars correctly. Then proceed to install tiny-cuda-nn (with pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch as described in the readme)
Also check of you have ninja installed somewhere, (in the command prompt use "where ninja" to check if you it can be found) it gave me problem with tiny-cuda-nn as it defaults to it if it's found, I removed it from my path and all was fine.
Just to make these steps clearer for others, to fix the issue:
vcvars64.bat
script to set up the environment variables. For example, I have activated my conda environment (nerfstudio) and then I run the .bat file from Visual Studio 2022,
(nerfstudio) C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build>vcvars64.bat
(nerfstudio) pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Notes:
vcvars64.bat
file will depend on which version of Visual Studio you installed (e.g., either 2019 or 2022, either Community or Professional, etc.). So you may need to dig around to find the script. Check this link from Microsoft on where to find these scripts..bat
script even do? An explanation from Microsoft (source) ,
To work correctly, the tools require several specific environment variables to be set. These variables are used to add the tools to the path, and to set the locations of include files, library files, and SDKs.
Had the same issue, it's mostly related to Visual Studio not setting up environment variable during install. Before installing tiny-cuda-nn, in the same anaconda command prompt windows run vcvars64.bat (usually it's in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build) which sets VC env vars correctly. Then proceed to install tiny-cuda-nn (with pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch as described in the readme)
Also check of you have ninja installed somewhere, (in the command prompt use "where ninja" to check if you it can be found) it gave me problem with tiny-cuda-nn as it defaults to it if it's found, I removed it from my path and all was fine.
Note there is two program in anaconda, is "Anaconda Prompt " and "Anaconda PowerShell Prompt", powershell can't use bat file or I don't know how to use vcvars64.bat, so when I try no powershell Prompt, it works. PowerShell Prompt is use like ls cd linux commad , and Prompt us "dir" "cd" windows cmd.
For anyone getting an error Cannot find corecrt.h
after running the vcvars64
batch file, try
if running vcvars64.bat don't work, you can try to run command directly in x64 Native Tools Command Prompt for VS 2019, it will automaticly setup corresponding envoronment :>
Describe the bug Getting the following error when trying to run
pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Produce the following output:
Any thought how to handle it?
My system Info: Windows 10 Visual Studio 2022 CUDA 11.7