NoduleNet icon indicating copy to clipboard operation
NoduleNet copied to clipboard

python setup.py install error

Open scsunjing opened this issue 4 years ago • 7 comments

cd build/box python setup.py install

I got error

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\software\Miniconda\envs\NoduleNetEnv\lib\site-packages\torch\lib /LIBPATH:D:\software\Miniconda\envs\NoduleNetEnv\libs /LIBPATH:D:\software\Miniconda\envs\NoduleNetEnv\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x64" c10.lib caffe2.lib torch.lib torch_python.lib _C.lib /EXPORT:PyInit_box build\temp.win-amd64-3.6\Release\box.obj /OUT:build\lib.win-amd64-3.6\box.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\box.cp36-win_amd64.lib box.obj : warning LNK4197: 多次指定导出“PyInit_box”;使用第一个规范 正在创建库 build\temp.win-amd64-3.6\Release\box.cp36-win_amd64.lib 和对象 build\temp.win-amd64-3.6\Release\box.cp36-win_amd64.exp box.obj : error LNK2001: 无法解析的外部符号 "public: long * __cdecl at::Tensor::data(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ) build\lib.win-amd64-3.6\box.cp36-win_amd64.pyd : fatal error LNK1120: 1 个无法解析的外部命令 error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit status 1120

scsunjing avatar Sep 30 '21 02:09 scsunjing

I meet the same problem! Does anyone have the solution? @scsunjing, did you solve it? Is this build/box step necessary in the project?

dreamwish1998 avatar Oct 14 '21 01:10 dreamwish1998

@junxiaopang1998 I change all "long" to "int64_t" in nms.cpp to install it successfully on win10. if you install it succeessfully, it will faster when train.py. if you test succeessfully, can you tell me the mean of the result.

scsunjing avatar Oct 14 '21 06:10 scsunjing

@junxiaopang1998 I change all "long" to "int64_t" in nms.cpp to install it successfully on win10. if you install it succeessfully, it will faster when train.py. if you test succeessfully, can you tell me the mean of the result.

@scsunjing Thank you very much, the dataset I currently use is LUNA16. There are some problems in the running process of train.py, but my test.py ran successfully. I don’t know if you ran train.py successfully?

dreamwish1998 avatar Oct 18 '21 02:10 dreamwish1998

@junxiaopang1998 my train test.py ran successfully, I always get out of memory error when set net.use_mask = True at test.py,can you give me the results of the test.py

scsunjing avatar Oct 18 '21 03:10 scsunjing

@junxiaopang1998 my train test.py ran successfully, I always get out of memory error when set net.use_mask = True at test.py,can you give me the results of the test.py

@scsunjing How can I contact you? I also have questions and want to consult you. Thanks!

dreamwish1998 avatar Oct 18 '21 03:10 dreamwish1998

@junxiaopang1998 qq: 2934590786

scsunjing avatar Oct 20 '21 02:10 scsunjing

@junxiaopang1998 QQ:2934590786 @scsunjing I have some questions I would like to ask you, thank you

chovvvvvy avatar Mar 27 '23 08:03 chovvvvvy