Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/345.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python numpy.distutils中没有名为msvccompiler的模块;正在尝试从distutils和raise SystemExit“退出”;错误:"+;str(msg)_Python_Numpy_Mingw32 - Fatal编程技术网

Python numpy.distutils中没有名为msvccompiler的模块;正在尝试从distutils和raise SystemExit“退出”;错误:"+;str(msg)

Python numpy.distutils中没有名为msvccompiler的模块;正在尝试从distutils和raise SystemExit“退出”;错误:"+;str(msg),python,numpy,mingw32,Python,Numpy,Mingw32,有人能救我吗??当我使用MinGw32使用一些c代码编译Python时,我遇到了以下问题 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\Dilr

有人能救我吗??当我使用MinGw32使用一些c代码编译Python时,我遇到了以下问题

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.
D:\java\u workspace\dillechete\ddst\video\view\u cv.py:73:FutureWarning:与'None'的比较将导致将来的元素对象比较。
如果frame==None:返回False
D:\java\u workspace\Dilrechete\ddst\video\color\u bias.py:102:FutureWarning:与'None'比较将导致将来的元素对象比较。
如果img==无:
numpy.distutils中没有名为msvccompiler的模块;从distutils开始尝试
回溯(最近一次呼叫最后一次):
文件“D:\java\u workspace\dillechete\ddst\video\test\u backsub\u dp.py”,第127行,在
man.run(profile=True)
文件“D:\java\u workspace\dillechete\ddst\video\manager.py”,第127行,正在运行
如果self.nextFrame()==False:break
文件“D:\java\u workspace\dillechete\ddst\video\manager.py”,第104行,在下一帧中
res=vid.nextFrame()
文件“D:\java\u workspace\dillechete\ddst\video\color\u bias.py”,第162行,下一帧
内联(代码,['img','output','matrix','lumScale','chromaScale','noiseFloor'])
文件“E:\Python27\lib\site packages\scipy\weave\inline\u tools.py”,第366行,内联
**千瓦)
文件“E:\Python27\lib\site packages\scipy\weave\inline\u tools.py”,第496行,在compile\u函数中
详细=详细,**千瓦)
文件“E:\Python27\lib\site packages\scipy\weave\ext\u tools.py”,第373行,编译
详细=详细,**千瓦)
文件“E:\Python27\lib\site packages\scipy\weave\build\u tools.py”,第279行,内部版本扩展名
设置(名称=模块名称,外部模块=[ext],详细=动词)
文件“E:\Python27\lib\site packages\numpy\distutils\core.py”,第169行,在安装程序中
返回旧的\u设置(**新的\u属性)
文件“E:\Python27\lib\distutils\core.py”,第166行,在安装程序中
raise SystemExit,“错误:+str(消息)
distutils.errors.CompileError:error:Command"g++-O2-Wall-D\uu MSVCRT\u VERSION\uuuuu=0x0900-IE:\Python27\lib\site packages\scipy\weave-IE:\Python27\lib\site packages\scpy\weave\scxx-IE:\Python27\include-IE:\Python27\include-IE:\Python27\PC-c E:\Python27\lib\site packages\scipy\weave\scxx\weave\weave\imp.cpp-oc:\users\清华\appdata\local\temp\scipy-清华-ivodx3\python27\u intermediate\compiler\u e3b0c44298fc1c149afbf4c8996fb924\Release\python27\lib\site packages\scipy\weave\scxx\weave\u imp.o“失败,退出状态为1”
此应用程序已请求运行时以异常方式终止它。
有关更多信息,请联系应用程序的支持团队。
主要有三个问题,一是numpy.distutils中没有名为msvccompiler的模块;“正在从distutils中尝试”,一个是“raisesystemexit”,错误:“+str(msg)”,最后一个是“ 此应用程序已请求运行时以异常方式终止它。 有关详细信息,请与应用程序的支持团队联系。”

我试过很多方法,但都不管用。所以我把所有的问题都贴在这里,有人能告诉我怎么解决吗