There is no module named msvccompiler in numpy.distutils; trying from distutils and raising SystemExit, "error:" + str (msg)

Can anyone save me? When I compiled Python with some c code using MinGw32, I was stowed into the following problems.

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 -oc:\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 support team for more information. 

There are three main problems: one of them is "There is no module named msvccompiler in numpy.distutils, an attempt from distutils", one is "raise SystemExit", the error is "+ str (msg)", and the last one - This application asked Runtime to stop in his unusual way. For more information, contact support. "

I tried many ways, but none of them work for me. So I insert all the problems here, can someone tell me how to fix this?

+5
source share

Source: https://habr.com/ru/post/1208496/


All Articles