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

errors in build/box #44

Open
Wangyu-gz opened this issue Aug 12, 2022 · 1 comment
Open

errors in build/box #44

Wangyu-gz opened this issue Aug 12, 2022 · 1 comment

Comments

@Wangyu-gz
Copy link

Errors compiling when I install setup.py:
(my environment:
python:3.8 pytorch:1.10 ninja:1.10.2 And I have solved some errors caused by the high version of pytorch)

D:\anaconda3\envs\Wuweb\lib\site-packages\torch\utils\cpp_extension.py:316: UserWarning: Error checking compiler version for
cl: [WinError 2] _系统找不到指定的文件。 ###error1
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'box' extension
creating D:\hly\NoduleNet\NoduleNet-master\build\box\build\temp.win-amd64-3.8
creating D:\hly\NoduleNet\NoduleNet-master\build\box\build\temp.win-amd64-3.8\Release
Emitting ninja build file D:\hly\NoduleNet\NoduleNet-master\build\box\build\temp.win-amd64-3.8\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.2
creating D:\hly\NoduleNet\NoduleNet-master\build\box\build\lib.win-amd64-3.8
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\link.exe /nologo /IN
CREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\anaconda3\envs\Wuweb\lib\site-packages\torch\lib /L
IBPATH:D:\anaconda3\envs\Wuweb\libs /LIBPATH:D:\anaconda3\envs\Wuweb\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsof
t Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual S
tudio\2019\Community\VC\Tools\MSVC\14.27.29110\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x6
4" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits
\10\lib\10.0.18362.0\um\x64" c10.lib torch.lib torch_cpu.lib torch_python.lib /EXPORT:PyInit_box D:\hly\NoduleNet\NoduleNet-
master\build\box\build\temp.win-amd64-3.8\Release\box.obj /OUT:build\lib.win-amd64-3.8\box.cp38-win_amd64.pyd /IMPLIB:D:\hly
\NoduleNet\NoduleNet-master\build\box\build\temp.win-amd64-3.8\Release\box.cp38-win_amd64.lib
LINK : fatal error LNK1181: 无法打开输入文件“D:\hly\NoduleNet\NoduleNet-master\build\box\build\temp.win-amd64-3.8\Release\bo
x.obj” ###error2
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX8
6\x64\link.exe' failed with exit status 1181

When I open build \ box \ build \ temp.win-amd64-3.8 \ release , I find that there is no box.obj generated, only build.ninja.

Could you please help me with the problem?many thanks.

@BRAIN-RICH
Copy link

Do you solve this problem?

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