Python错误:“gcc”未被识别为内部或外部命令

2024-10-06 16:24:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试将Zhang-Suen thinning algorithm应用于指纹识别系统。但我得到一个错误:

'gcc' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "newff.py", line 69, in <module>
    sk = thinning(bn);
  File "newff.py", line 47, in thinning
    dst = _thinningIteration(dst, 0)
  File "newff.py", line 37, in _thinningIteration
    weave.inline(expr, ["I", "iter", "M"])
  File "E:\Anaconda2\Lib\site-packages\scipy\weave\inline_tools.py", line 366, i
n inline
    **kw)
  File "E:\Anaconda2\Lib\site-packages\scipy\weave\inline_tools.py", line 496, i
n compile_function
    verbose=verbose, **kw)
  File "E:\Anaconda2\Lib\site-packages\scipy\weave\ext_tools.py", line 373, in c
ompile
    verbose=verbose, **kw)
  File "E:\Anaconda2\Lib\site-packages\scipy\weave\build_tools.py", line 279, in
 build_extension
    setup(name=module_name, ext_modules=[ext],verbose=verb)
  File "E:\Anaconda2\Lib\site-packages\numpy\distutils\core.py", line 169, in se
tup
    return old_setup(**new_attr)
  File "c:\Python27\lib\distutils\core.py", line 159, in setup
    raise SystemExit, "error: %s" % (exc,)
distutils.errors.CompileError: error: [Error 2] The system cannot find the file
specified

我到处找遍了,但没发现以前贴的同样的问题。在


Tags: inpyverboselibpackageslinesiteinline