Tramac / awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Apache License 2.0
2.85k stars 582 forks source link

ImportError,cannot import name '_C' from 'core.nn' (/home/pmy/PycharmProjects/lunwen_code/awesome-semantic-segmentation-pytorch-master/core/nn/__init__.py) #66

Open web3-panpan opened 5 years ago

opee007 commented 5 years ago

I have encountered the same problem, have you solved it?

web3-panpan commented 5 years ago

我已经解决了,我不知道你安没安装成功 如果安装成功了还报这个错误你需要再次安装readme里面的python setup.py build develop操作, 然后重启机器就好了,希望能够帮到你

------------------ 原始邮件 ------------------ 发件人: "opee007"notifications@github.com; 发送时间: 2019年9月10日(星期二) 上午10:08 收件人: "Tramac/awesome-semantic-segmentation-pytorch"awesome-semantic-segmentation-pytorch@noreply.github.com; 抄送: "fossette"2994216428@qq.com;"Author"author@noreply.github.com; 主题: Re: [Tramac/awesome-semantic-segmentation-pytorch] ImportError,cannotimport name '_C' from 'core.nn'(/home/pmy/PycharmProjects/lunwen_code/awesome-semantic-segmentation-pytorch-master/core/nn/init.py)(#66)

I have encountered the same problem, have you solved it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

opee007 commented 5 years ago

我已经解决了,我不知道你安没安装成功 如果安装成功了还报这个错误你需要再次安装readme里面的python setup.py build develop操作, 然后重启机器就好了,希望能够帮到你 ------------------ 原始邮件 ------------------ 发件人: "opee007"notifications@github.com; 发送时间: 2019年9月10日(星期二) 上午10:08 收件人: "Tramac/awesome-semantic-segmentation-pytorch"awesome-semantic-segmentation-pytorch@noreply.github.com; 抄送: "fossette"2994216428@qq.com;"Author"author@noreply.github.com; 主题: Re: [Tramac/awesome-semantic-segmentation-pytorch] ImportError,cannotimport name '_C' from 'core.nn'(/home/pmy/PycharmProjects/lunwen_code/awesome-semantic-segmentation-pytorch-master/core/nn/init.py)(#66) I have encountered the same problem, have you solved it? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

谢了,没有仔细读readme...

balabala7776 commented 5 years ago

一次只能开启一个python脚本,不然第二个就会报这个错误

shifangtian commented 5 years ago

I was giving an error when I am doing python setup.py build develop .error: command 'D:\deeplearning\anaconda\Library\mingw-w64\bin\gcc.exe' failed with exit status 1