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

Error: command . . . cl.exe' failed with exit status 2 #115

Open
NightTerror04 opened this issue Aug 15, 2022 · 1 comment
Open

Error: command . . . cl.exe' failed with exit status 2 #115

NightTerror04 opened this issue Aug 15, 2022 · 1 comment

Comments

@NightTerror04
Copy link

When running python setup.py build_ext --inplace

I get this error:

C:\Users\User\anaconda3\envs\mesh_funcspace\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building 'im2mesh.utils.libmesh.triangle_hash' extension C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\User\anaconda3\envs\mesh_funcspace\include -IC:\Users\User\anaconda3\envs\mesh_funcspace\include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" /EHsc /Tpim2mesh/utils/libmesh/triangle_hash.cpp /Fobuild\temp.win-amd64-3.6\Release\im2mesh/utils/libmesh/triangle_hash.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=triangle_hash -D_GLIBCXX_USE_CXX11_ABI=0 triangle_hash.cpp im2mesh/utils/libmesh/triangle_hash.cpp(644): fatal error C1083: Cannot open include file: 'numpy/arrayobject.h': No such file or directory error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

I'm super new to python and I can't find any way to fix this, does anyone know why I'm getting this issue?

@TaroPlay
Copy link

halo? do u solve this problem?I have the same problem as you.

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

2 participants