当我运行test.py https://github.com/zisianw/FaceBoxes.PyTorch时
它导入这个文件https://github.com/zisianw/FaceBoxes.PyTorch/blob/master/utils/nms_wrapper.py
这个文件试图导入这个文件夹中的两个.pyx文件。
https://github.com/zisianw/FaceBoxes.PyTorch/tree/master/utils/nms
我如何将这些.pyx文件转换成普通的Python代码,或者只是以某种方式导入它们?
我没有做任何事情就得到了这个错误。
from .nms.cpu_nms import cpu_nms, cpu_soft_nms
ModuleNotFoundError: No module named 'utils.nms.cpu_nms'可能的解决办法是行不通的。
import pyximport
pyximport.install()它给了我这个错误
> ImportError: Building module utils.nms.cpu_nms failed: ["distutils.errors.CompileError: command 'C:\\\\Program Files (x86)\\\\Microsoft Visual Studio\\\\2019\\\\Community\\\\VC\\\\Tools\\\\MSVC\\\\14.25.28610\\\\bin\\\\HostX86\\\\x64\\\\cl.exe' failed with exit status 2\n"]发布于 2020-11-13 11:23:48
导入之前,请确保成功构建了FaceBoxes和Sim3DR,例如,
sh build.shhttps://stackoverflow.com/questions/61331614
复制相似问题