nerfstudio icon indicating copy to clipboard operation
nerfstudio copied to clipboard

Failed to Install 'gsplat' from source

Open myj92512 opened this issue 1 year ago • 1 comments

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 屏幕截图 2024-06-30 113916

myj92512 avatar Jun 30 '24 03:06 myj92512

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!

image

gdedi001 avatar Jul 02 '24 03:07 gdedi001

@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?

Anji-Builds avatar Jul 12 '24 18:07 Anji-Builds

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

  1. 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
  2. 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". image
  3. 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'
      
  4. 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).
  5. Set Additional Environment Variable:

    • Run the following command to set the required environment variable:
      set DISTUTILS_USE_SDK=1
      

By following these steps, you should have a properly configured development environment integrating MSVC 142 with Visual Studio 2022 and Anaconda.

VfxTDwiki avatar Jul 18 '24 21:07 VfxTDwiki