numpy.distutils中没有名为msvccompiler的模块; 从distutils尝试并提升SystemExit,"错误:"+ str(msg)

 zhoukaipc 发布于 2022-12-07 14:49

有人可以拯救我吗?当我用一些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 
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)",最后一个是"此应用程序已请求运行时以不寻常的方式终止它.请联系应用程序的支持团队获取更多信息."

我尝试了很多方法,但它们都不适合我.所以我在这里粘贴所有问题,有人可以告诉我如何修复它吗?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有