Python:为什么finder模块不能在windows中工作?

2024-06-28 11:03:16 发布

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

Pythonflawfinder模块在bash中工作,但在Windows命令行中不工作。以下是我遵循的步骤:

  1. Python安装路径-C/Users/xyz/AppData/Local/Programs/Python/Python37-32/Python

    pip install flawfinder

  2. 当我在命令行中键入flawfinder时,它会给出以下错误:

    flawfinder is not recognized as an internal or external command, operable program or batch file.


Tags: 模块or命令行路径bashwindowslocal步骤
1条回答
网友
1楼 · 发布于 2024-06-28 11:03:16

对于Windows,建议的方法是安装Cygwin,并在其上安装缺陷查找器。这是通常的方法。从Docs

Flawfinder works on Unix-like systems (it’s been tested on GNU/Linux), and on Windows by using Cygwin.

但是也可以通过将python作为脚本运行来使用它。你知道吗

  • 下载缺陷发现者.py脚本from here
  • 像往常一样在cmd提示符下用python运行

    python flawfinder [options] [source_code_file]+

相关问题 更多 >