junfu1115 / DANet

Dual Attention Network for Scene Segmentation (CVPR2019)
MIT License
2.41k stars 483 forks source link

ImportError: No module named 'enclib_cpu' #108

Open joker5743 opened 4 years ago

joker5743 commented 4 years ago

At first , I meet the question about ['ninja' , '-v'], and I follow the 1th step of share method. However, I change '-v' to '-version', and then I meet this question. The method I found is not useful for me , because I can't compile with 2th step. Could you have the same question about this? My environment is pytorch 1.1.0 , torchvision 0.4.5, cuda 10.0

UncleSan commented 4 years ago

When the Error, "ImportError: No module named 'enclib_cpu'", came out,

cd E:\Anaconda3\envs\DANet\Lib\site-packages\encoding\lib\cpu

and then,

python setup.py install

HOWEVER, another ERROR was showed, i.e.,

LINK : fatal error LNK1181: cannot open the input file “E:\Anaconda3\envs\DANet\Lib\site-packages\encoding\lib\cpu\build\temp.win-amd64-3.6\Release\roi_align.obj” error: command 'E:\Software\VS2017\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

How to sovle this issue?

peterwkl2013 commented 3 years ago

i meet this problem too, how to fix?