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

Windows下运行编译报错 #73

Open
arkerman opened this issue May 16, 2024 · 1 comment
Open

Windows下运行编译报错 #73

arkerman opened this issue May 16, 2024 · 1 comment

Comments

@arkerman
Copy link

运行了编译的命令行python ops/setup.py develop

报错:
running develop D:\Program Files (x86)\anaconda\envs\v5_6.0\lib\site-packages\setuptools\command\easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. EasyInstallDeprecationWarning, D:\Program Files (x86)\anaconda\envs\v5_6.0\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and oth er standards-based tools. setuptools.SetuptoolsDeprecationWarning, running egg_info writing pointpillars.egg-info\PKG-INFO writing dependency_links to pointpillars.egg-info\dependency_links.txt writing top-level names to pointpillars.egg-info\top_level.txt 'ninja' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 D:\Program Files (x86)\anaconda\envs\v5_6.0\lib\site-packages\torch\utils\cpp_extension.py:387: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) reading manifest file 'pointpillars.egg-info\SOURCES.txt' adding license file 'LICENSE' writing manifest file 'pointpillars.egg-info\SOURCES.txt' running build_ext D:\Program Files (x86)\anaconda\envs\v5_6.0\lib\site-packages\torch\utils\cpp_extension.py:322: UserWarning: Error checking compiler version for cl: Command 'cl' returned non-zero exi t status 1. warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'voxel_op' extension cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA "-ID:\Program Files (x86)\anaconda\envs\v5_6.0\lib\site-packages\torch\include" "-ID:\Program Files (x86)\anaconda\envs\v5_6.0\l ib\site-packages\torch\include\torch\csrc\api\include" "-ID:\Program Files (x86)\anaconda\envs\v5_6.0\lib\site-packages\torch\include\TH" "-ID:\Program Files (x86)\anaconda\envs\v5_6. 0\lib\site-packages\torch\include\THC" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\include" "-ID:\Program Files (x86)\anaconda\envs\v5_6.0\include" "-ID:\Program Files (x86)\anaconda\envs\v5_6.0\Include" /EHsc /Tpvoxelization/voxelization.cpp /Fobuild\temp.win-amd64-cpython-37\Release\voxelization/voxelization.obj /MD /wd4819 /wd4251 /wd4244 /wd426 7 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=voxel_op -D_GLIBCXX_USE_CXX11_ABI=0 'cl.exe' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 error: command 'cl.exe' failed with exit code 1

有什么解决办法么?

@durongzheng
Copy link

要先编译 CUDA 算子,但缺少 c++ 编译环境:

'cl.exe' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

装一个 visual studio community 版试试。

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