Skip to content
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

Failed to install in venv but able to install in OS without environment. #1944

Open
fegarza7 opened this issue Jan 27, 2025 · 0 comments
Open

Comments

@fegarza7
Copy link

fegarza7 commented Jan 27, 2025

🐛 Bugs / Unexpected behaviors

I am trying to install pytorch3d in pychamp using an environment, I managed to install all of the requirements including gcc, CUDA and Microsoft Visual Studio but I was unable because of this error:

nvcc fatal : cl.exe in PATH (C:/Users/USER/mingw64/bin) is different than one specified with -ccbin (C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.42.34433/bin/HostX86/x64)

I noticed that the problem has to do with MinGW-W64-binaries, I installed on my windows machine and added the path as described in the tutorials, when you try to install pytorch3d, this error pops.

I tried to fix it by changing the environment variable to the Visual Studio Path but then I get a different error:

nvcc fatal : Cannot find compiler 'gcc' in PATH

This means that the environment variable PATH, is used for both gcc and cl.exe. it finds the gcc but it cannot find the cl.exe file which is available in Visual studio in a different path. When I fix this (by removing the C:/Users/USER/mingw64/bin) , then it cannot find gcc.

Instructions To Reproduce the Issue:

1 - Install https://github.com/niXman/mingw-builds-binaries
2 - Add the path of the install to the environment variable PATH = C:/Users/USER/mingw64/bin
3 - Install Microsoft Visual studio
4 - Install pytorch3d

The exact command(s) you ran: pip install "git+https://github.com/facebookresearch/pytorch3d.git"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant