簡體   English   中英

Python:為什么探傷模塊在 cmd windows 中不起作用?

[英]Python: Why flawfinder module is not working in cmd windows?

Python flawfinder模塊在 bash 中工作,但在 Windows 命令行中工作。 以下是我遵循的步驟:

  1. Python 安裝路徑-C/Users/xyz/AppData/Local/Programs/Python/Python37-32/python

    pip install flawfinder

  2. 當我在命令行中輸入flawfinder時,會出現以下錯誤:

    缺陷查找器不被識別為內部或外部命令、可運行程序或批處理文件。

對於 Windows,推薦的方法是安裝Cygwin並在其上安裝探查器。 這是通常的方式。 文檔

Flawfinder 適用於類 Unix 系統(已在 GNU/Linux 上測試過),並使用 Cygwin 在 Windows 上工作。

但也可以通過將其作為腳本運行來使其與 python 一起使用。

  • 從這里下載faultfinder.py 腳本
  • 像往常一樣在 cmd 提示符中使用 python 運行它,例如,

    python flawfinder [options] [source_code_file]+

自 2.0.16 版發布以來, flawfinder缺陷查找器也可以按預期在 windows 上運行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM