Failed to Install 'gsplat' from source
Hi, I tried to install Nerfstudio based on the installation tutorial and stucked in installing 'gsplat' step. I think I have already run 'vcvars64' bat file and set DISTUTILS_USE_SDK=1 before running 'pip install git+https://github.com/nerfstudio-project/gsplat.git' command. And it still failed. The screenshot is attached below, thank you
same issue for me, what I think got it working was opting for the more verbose option that is listed prior. Mine was vcvarsall.bat x64 -vcvars_ver=14.29.16.11 but check in your directory for the exact version. Lmk if that helps!
@gdedi001 where did you find the version value? Did it solve the error for you?
I tried the folder name (14.40.33807) in the directory (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC) but I am still getting the same error.
@myj92512 where you able to solve?
I'm currently writing a documentation to install nerfstudio on Windows.
Here is an show you what @gdedi001 was telling you.
Instructions for Setting Up MSVC 142 with Visual Studio 2022 and Anaconda
-
Open the Directory:
- Use the File Explorer to navigate to the following directory:
C:\Program Files\Microsoft Visual Studio\2022\[Your Edition]\VC\Auxiliary\Build\ - Note: Replace
[Your Edition]with the version of Visual Studio installed on your computer. This could be one of the following:- Community
- Professional
- Enterprise
- BuildTools
- Use the File Explorer to navigate to the following directory:
-
Verify Installation:
- After installing MSVC 142, a new subfolder should be added to the directory mentioned above. This subfolder will start with "14.2xxx" and might look like "14.29.16.11". In this example, the version is "14.29".
- After installing MSVC 142, a new subfolder should be added to the directory mentioned above. This subfolder will start with "14.2xxx" and might look like "14.29.16.11". In this example, the version is "14.29".
-
Return to Anaconda Environment:
- Launch the Anaconda environment and run the following command:
"C:\Program Files\Microsoft Visual Studio\2022\[Your Edition]\VC\Auxiliary\Build\vcvars64.bat" x64 -vcvars_ver=14.29 - You should see an output similar to:
************************************************************** ** Visual Studio 2022 Developer Command Prompt v17.8.7 ** Copyright (c) 2022 Microsoft Corporation ************************************************************** [vcvarsall.bat] Environment initialized for: 'x64'
- Launch the Anaconda environment and run the following command:
-
Environment Variables:
- This command will set up the environment variables necessary to integrate Visual Studio with your development environment.
- Important: There should be no errors at this stage. If you encounter any errors, ensure that MSVC 142 for Visual Studio 2019 is correctly installed (see the step above).
-
Set Additional Environment Variable:
- Run the following command to set the required environment variable:
set DISTUTILS_USE_SDK=1
- Run the following command to set the required environment variable:
By following these steps, you should have a properly configured development environment integrating MSVC 142 with Visual Studio 2022 and Anaconda.