有人可以拯救我吗?当我用一些c代码编译Python时,使用MinGw32,我遇到了以下问题。
D:\java_workspace\Dilrechete\ddst\video\view_cv.py:73: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
if frame==None: return False
D:\java_workspace\Dilrechete\ddst\video\colour_bias.py:102: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
if img==None:
No module named msvccompiler in numpy.distutils; trying from distutils
Traceback (most recent call last):
File "D:\java_workspace\Dilrechete\ddst\video\test_backsub_dp.py", line 127, in <module>
man.run(profile=True)
File "D:\java_workspace\Dilrechete\ddst\video\manager.py", line 127, in run
if self.nextFrame()==False: break
File "D:\java_workspace\Dilrechete\ddst\video\manager.py", line 104, in nextFrame
res = vid.nextFrame()
File "D:\java_workspace\Dilrechete\ddst\video\colour_bias.py", line 162, in nextFrame
weave.inline(code, ['img', 'output', 'matrix', 'lumScale', 'chromaScale', 'noiseFloor'])
File "E:\Python27\lib\site-packages\scipy\weave\inline_tools.py", line 366, in inline
**kw)
File "E:\Python27\lib\site-packages\scipy\weave\inline_tools.py", line 496, in compile_function
verbose=verbose, **kw)
File "E:\Python27\lib\site-packages\scipy\weave\ext_tools.py", line 373, in compile
verbose=verbose, **kw)
File "E:\Python27\lib\site-packages\scipy\weave\build_tools.py", line 279, in build_extension
setup(name=module_name, ext_modules=[ext],verbose=verb)
File "E:\Python27\lib\site-packages\numpy\distutils\core.py", line 169, in setup
return old_setup(**new_attr)
File "E:\Python27\lib\distutils\core.py", line 166, in setup
raise SystemExit, "error: " + str(msg)
distutils.errors.CompileError: error: Command "g++ -O2 -Wall -D__MSVCRT_VERSION__=0x0900 - IE:\Python27\lib\site-packages\scipy\weave -IE:\Python27\lib\site-packages\scipy\weave\scxx - IE:\Python27\lib\site-packages\numpy\core\include -IE:\Python27\include -IE:\Python27\PC -c E:\Python27\lib\site-packages\scipy\weave\scxx\weave_imp.cpp -o c:\users\tsinghua\appdata\local\temp\scipy-tsinghua-ivodx3\python27_intermediate\compiler_e3b0c44298fc1c149afbf4c8996fb924\Release\python27\lib\site-packages\scipy\weave\scxx\weave_imp.o" failed with exit status 1
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
有三个主要问题,一个是“在numpy.distutils中没有名为msvccompiler的模块;从distutils尝试”,一个是“提升SystemExit”,错误:“+ str(msg)”,最后一个是“ 此应用程序已请求Runtime以不寻常的方式终止它。 请联系应用程序的支持团队获取更多信息。“
我尝试了很多方法,但它们都不适合我。所以我在这里粘贴所有问题,有人可以告诉我如何修复它吗?