-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in installation #35
Comments
As noted in our installation instructions, we require Visual Studio to build tiny-cuda-nn.
If the error persists, I would suggest reporting that issue there https://github.com/NVlabs/tiny-cuda-nn, or testing their bindings in isolation to track down the issue: https://github.com/NVlabs/tiny-cuda-nn#pytorch-extension |
@rezanit76 you need to install the vs_build_tools download, which will setup a supported Microsoft Visual C++ installation. |
I´ve got the same error. In the TinyCuda documentations they suggest to install Visual Studio Code, C++ complements, and at least run "helloWorld". What worked for me instantly was to add in PATH the location of "cl.exe". It is embedded in the installation of Microsoft Visual Studio (probably Visual Studio Code is not a must, but I'm not sure). I've had to add several variables in PATH. |
see this #29 (comment) worked for me |
I re-downloaded vs2022 and installed it in the default location (drive C), which has been solved |
it worked for me |
run this line:
pip install --global-option="--no-networks" git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
then get this error :
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ReZaN.conda\envs\dmodel\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] ="'"'C:\Users\ReZaN\AppData\Local\Temp\pip-req-build-9qo96lf9\bindings/torch\setup.py'"'"'; file='"'"'C:\Users\ReZaN\AppData\Local\Temp\pip-req-build-9qo96lf9\bindings/torch\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ReZaN\AppData\Local\Temp\pip-pip-egg-info-gryf3c1b'
cwd: C:\Users\ReZaN\AppData\Local\Temp\pip-req-build-9qo96lf9\bindings/torch
Complete output (6 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ReZaN\AppData\Local\Temp\pip-req-build-9qo96lf9\bindings/torch\setup.py", line 41, in
raise RuntimeError("Could not locate a supported Microsoft Visual C++ installation")
RuntimeError: Could not locate a supported Microsoft Visual C++ installation
Building PyTorch extension for tiny-cuda-nn version 1.6
----------------------------------------
WARNING: Discarding git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The text was updated successfully, but these errors were encountered: