{"id":91198,"date":"2026-08-07T10:48:43","date_gmt":"2026-08-07T02:48:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/91198.html"},"modified":"2026-08-07T10:48:43","modified_gmt":"2026-08-07T02:48:43","slug":"scanoss-py-1-54-2-%e5%ae%8c%e6%95%b4%e5%91%bd%e4%bb%a4%e6%89%8b%e5%86%8c%ef%bc%882026%e5%b9%b48%e6%9c%88%e5%bd%93%e5%89%8d%e6%9c%80%e6%96%b0%e7%a8%b3%e5%ae%9a%e7%89%88%e6%9c%ac%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/91198.html","title":{"rendered":"scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1600\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807024840-6a754788a5073.jpg\" width=\"2848\" \/><\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E2%9A%A0%EF%B8%8F%E3%80%90%E8%87%B4%E5%91%BD%E9%94%99%E8%AF%AF%E5%A4%8D%E7%9B%98%EF%BC%88%E6%88%91%E4%B9%8B%E5%89%8D%E8%B8%A9%E5%9D%91%E7%82%B9%EF%BC%89%E3%80%91-toc\" style=\"margin-left:40px\">\u26a0\ufe0f\u3010\u81f4\u547d\u9519\u8bef\u590d\u76d8&#xff08;\u6211\u4e4b\u524d\u8e29\u5751\u70b9&#xff09;\u3011<\/p>\n<p id=\"%E2%9D%8C%E9%94%99%E8%AF%AF%E5%86%99%E6%B3%95%EF%BC%88%E4%BC%9A%E6%8A%A5%20invalid%20choice%3A%20&apos;http%3A%2F%2Fxxx&apos;%EF%BC%89-toc\" style=\"margin-left:80px\">\u274c\u9519\u8bef\u5199\u6cd5&#xff08;\u4f1a\u62a5 invalid choice: &#039;http:\/\/xxx&#039;&#xff09;<\/p>\n<p id=\"%E2%9C%85%E7%A7%81%E6%9C%89%E5%8C%96%E9%83%A8%E7%BD%B2%E3%80%90%E6%A0%87%E5%87%86%E6%AD%A3%E7%A1%AE%E6%A8%A1%E6%9D%BF%E3%80%91-toc\" style=\"margin-left:80px\">\u2705\u79c1\u6709\u5316\u90e8\u7f72\u3010\u6807\u51c6\u6b63\u786e\u6a21\u677f\u3011<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E9%A1%B6%E5%B1%82%E5%9F%BA%E7%A1%80%E5%91%BD%E4%BB%A4%EF%BC%88%E5%85%A8%E5%B1%80%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e00\u3001\u9876\u5c42\u57fa\u7840\u547d\u4ee4&#xff08;\u5168\u5c40&#xff09;<\/p>\n<p id=\"%E6%89%80%E6%9C%89%E5%AD%90%E5%91%BD%E4%BB%A4%E6%B8%85%E5%8D%95%EF%BC%881.54.2%20%E7%A8%B3%E5%AE%9A%E7%89%88%EF%BC%89-toc\" style=\"margin-left:40px\">\u6240\u6709\u5b50\u547d\u4ee4\u6e05\u5355&#xff08;1.54.2 \u7a33\u5b9a\u7248&#xff09;<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E6%A0%B8%E5%BF%83%E5%91%BD%E4%BB%A4%EF%BC%9Ascan%EF%BC%88%E6%BA%90%E7%A0%81%E6%89%AB%E6%8F%8F%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e8c\u3001\u6838\u5fc3\u547d\u4ee4&#xff1a;scan&#xff08;\u6e90\u7801\u626b\u63cf&#xff09;<\/p>\n<p id=\"%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95-toc\" style=\"margin-left:40px\">\u57fa\u7840\u8bed\u6cd5<\/p>\n<p id=\"%E9%AB%98%E9%A2%91%E5%8F%82%E6%95%B0-toc\" style=\"margin-left:40px\">\u9ad8\u9891\u53c2\u6570<\/p>\n<p id=\"%E5%AE%9E%E7%94%A8%E7%A4%BA%E4%BE%8B-toc\" style=\"margin-left:40px\">\u5b9e\u7528\u793a\u4f8b<\/p>\n<p id=\"1%EF%BC%89%E7%A7%81%E6%9C%89%E5%8C%96%E5%86%85%E7%BD%91%E6%89%AB%E6%8F%8F%EF%BC%8C%E7%9B%B4%E6%8E%A5%E8%BE%93%E5%87%BA%20HTML%20%E6%8A%A5%E5%91%8A%EF%BC%88%E4%BD%A0%E9%9C%80%E8%A6%81%E7%9A%84%EF%BC%89-toc\" style=\"margin-left:80px\">1&#xff09;\u79c1\u6709\u5316\u5185\u7f51\u626b\u63cf&#xff0c;\u76f4\u63a5\u8f93\u51fa HTML \u62a5\u544a&#xff08;\u4f60\u9700\u8981\u7684&#xff09;<\/p>\n<p id=\"2%EF%BC%89%E8%BE%93%E5%87%BA%20JSON%20%E5%8E%9F%E5%A7%8B%E7%BB%93%E6%9E%9C%EF%BC%8C%E5%90%8E%E7%BB%AD%E8%BD%AC%E6%8A%A5%E8%A1%A8-toc\" style=\"margin-left:80px\">2&#xff09;\u8f93\u51fa JSON \u539f\u59cb\u7ed3\u679c&#xff0c;\u540e\u7eed\u8f6c\u62a5\u8868<\/p>\n<p id=\"3%EF%BC%89%E5%85%AC%E7%BD%91%E5%85%8D%E8%B4%B9%E6%89%AB%E6%8F%8F%EF%BC%88%E9%BB%98%E8%AE%A4api.osskb.org%EF%BC%8C%E9%99%90%E6%B5%81%EF%BC%89-toc\" style=\"margin-left:80px\">3&#xff09;\u516c\u7f51\u514d\u8d39\u626b\u63cf&#xff08;\u9ed8\u8ba4api.osskb.org&#xff0c;\u9650\u6d41&#xff09;<\/p>\n<p id=\"%E4%B8%89%E3%80%81fingerprint%20%2Fwfp%20%E6%8C%87%E7%BA%B9%E7%94%9F%E6%88%90%EF%BC%88%E7%A6%BB%E7%BA%BF%E6%96%B9%E6%A1%88%E5%BF%85%E5%A4%87%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e09\u3001fingerprint \/wfp \u6307\u7eb9\u751f\u6210&#xff08;\u79bb\u7ebf\u65b9\u6848\u5fc5\u5907&#xff09;<\/p>\n<p id=\"%E5%9B%9B%E3%80%81convert%20%E6%A0%BC%E5%BC%8F%E8%BD%AC%E6%8D%A2%EF%BC%88%E9%87%8D%E7%82%B9%EF%BC%81%E5%BE%88%E5%A4%9A%E4%BA%BA%E5%88%86%E5%BC%80%E6%89%AB%E6%8F%8F%20%2B%20%E8%BD%AC%20html%EF%BC%89-toc\" style=\"margin-left:0px\">\u56db\u3001convert \u683c\u5f0f\u8f6c\u6362&#xff08;\u91cd\u70b9&#xff01;\u5f88\u591a\u4eba\u5206\u5f00\u626b\u63cf &#043; \u8f6c html&#xff09;<\/p>\n<p id=\"%E4%BA%94%E3%80%81dependencies%20%E4%BE%9D%E8%B5%96%E8%A7%A3%E6%9E%90-toc\" style=\"margin-left:0px\">\u4e94\u3001dependencies \u4f9d\u8d56\u89e3\u6790<\/p>\n<p id=\"%E5%85%AD%E3%80%81component%20%E7%BB%84%E4%BB%B6%E6%9F%A5%E8%AF%A2-toc\" style=\"margin-left:0px\">\u516d\u3001component \u7ec4\u4ef6\u67e5\u8be2<\/p>\n<p id=\"%E4%B8%83%E3%80%81%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E6%96%B9%E5%BC%8F%EF%BC%88CI%20%E6%B5%81%E6%B0%B4%E7%BA%BF%E6%8E%A8%E8%8D%90%EF%BC%8C%E4%B8%8D%E7%94%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%98%8E%E6%96%87%E5%AF%86%E9%92%A5%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e03\u3001\u73af\u5883\u53d8\u91cf\u65b9\u5f0f&#xff08;CI \u6d41\u6c34\u7ebf\u63a8\u8350&#xff0c;\u4e0d\u7528\u547d\u4ee4\u884c\u660e\u6587\u5bc6\u94a5&#xff09;<\/p>\n<p id=\"%E5%85%AB%E3%80%81%E5%B8%B8%E8%A7%81%E9%81%BF%E5%9D%91%E6%B8%85%E5%8D%95-toc\" style=\"margin-left:0px\">\u516b\u3001\u5e38\u89c1\u907f\u5751\u6e05\u5355<\/p>\n<p id=\"%E4%B9%9D%E3%80%81CI%20%E6%B5%81%E6%B0%B4%E7%BA%BF%E6%A0%87%E5%87%86%E5%AE%8C%E6%95%B4%E8%84%9A%E6%9C%AC%E7%A4%BA%E4%BE%8B%EF%BC%88Anolis%20OS%20%E5%8F%AF%E7%94%A8%EF%BC%89-toc\" style=\"margin-left:0px\">\u4e5d\u3001CI \u6d41\u6c34\u7ebf\u6807\u51c6\u5b8c\u6574\u811a\u672c\u793a\u4f8b&#xff08;Anolis OS \u53ef\u7528&#xff09;<\/p>\n<hr id=\"hr-toc\" \/>\n<\/p>\n<h3 id=\"%E2%9A%A0%EF%B8%8F%E3%80%90%E8%87%B4%E5%91%BD%E9%94%99%E8%AF%AF%E5%A4%8D%E7%9B%98%EF%BC%88%E6%88%91%E4%B9%8B%E5%89%8D%E8%B8%A9%E5%9D%91%E7%82%B9%EF%BC%89%E3%80%91\">\u26a0\ufe0f\u3010\u81f4\u547d\u9519\u8bef\u590d\u76d8&#xff08;\u6211\u4e4b\u524d\u8e29\u5751\u70b9&#xff09;\u3011<\/h3>\n<h4 id=\"%E2%9D%8C%E9%94%99%E8%AF%AF%E5%86%99%E6%B3%95%EF%BC%88%E4%BC%9A%E6%8A%A5%20invalid%20choice%3A%20&apos;http%3A%2F%2Fxxx&apos;%EF%BC%89\">\u274c\u9519\u8bef\u5199\u6cd5&#xff08;\u4f1a\u62a5 invalid choice: &#039;http:\/\/xxx&#039;&#xff09;<\/h4>\n<p>scanoss-py http:\/\/x.x.x.x:8083 scan .<\/p>\n<p>\u539f\u7406&#xff1a;&#8211;apiurl\u3001&#8211;key \u5c5e\u4e8e scan \u5b50\u547d\u4ee4\u53c2\u6570&#xff0c;\u5fc5\u987b\u653e\u5728 scan \u540e\u9762&#xff0c;\u4e0d\u80fd\u653e\u5728 scanoss-py \u548c scan \u4e2d\u95f4&#xff01;<\/p>\n<h4 id=\"%E2%9C%85%E7%A7%81%E6%9C%89%E5%8C%96%E9%83%A8%E7%BD%B2%E3%80%90%E6%A0%87%E5%87%86%E6%AD%A3%E7%A1%AE%E6%A8%A1%E6%9D%BF%E3%80%91\">\u2705\u79c1\u6709\u5316\u90e8\u7f72\u3010\u6807\u51c6\u6b63\u786e\u6a21\u677f\u3011<\/h4>\n<p>scanoss-py scan &#8211;apiurl http:\/\/x.x.x.x:8083 &#8211;key YOUR_API_KEY -o result.json .\/\u6e90\u7801\u76ee\u5f55<\/p>\n<hr \/>\n<h2 id=\"%E4%B8%80%E3%80%81%E9%A1%B6%E5%B1%82%E5%9F%BA%E7%A1%80%E5%91%BD%E4%BB%A4%EF%BC%88%E5%85%A8%E5%B1%80%EF%BC%89\">\u4e00\u3001\u9876\u5c42\u57fa\u7840\u547d\u4ee4&#xff08;\u5168\u5c40&#xff09;<\/h2>\n<p># \u67e5\u770b\u7248\u672c&#xff08;\u786e\u8ba4\u5f53\u524d1.54.2&#xff09;<br \/>\nscanoss-py -v<br \/>\nscanoss-py version<\/p>\n<p># \u5168\u5c40\u5e2e\u52a9<br \/>\nscanoss-py -h<br \/>\n# \u67e5\u770b\u67d0\u4e2a\u5b50\u547d\u4ee4\u5e2e\u52a9&#xff08;\u63a8\u8350&#xff09;<br \/>\nscanoss-py scan -h<\/p>\n<h3 id=\"%E6%89%80%E6%9C%89%E5%AD%90%E5%91%BD%E4%BB%A4%E6%B8%85%E5%8D%95%EF%BC%881.54.2%20%E7%A8%B3%E5%AE%9A%E7%89%88%EF%BC%89\">\u6240\u6709\u5b50\u547d\u4ee4\u6e05\u5355&#xff08;1.54.2 \u7a33\u5b9a\u7248&#xff09;<\/h3>\n<p>scan (sc)         # \u6838\u5fc3\u6e90\u7801\u626b\u63cf\u3010\u6700\u5e38\u7528\u3011<br \/>\nfingerprint (fp,wfp)  # \u751f\u6210wfp\u6307\u7eb9\u6587\u4ef6<br \/>\ndependencies (dep,dp) # \u5355\u72ec\u89e3\u6790\u9879\u76ee\u4f9d\u8d56&#xff08;package.json\/pom.xml\u7b49&#xff09;<br \/>\nconvert (cv)      # \u626b\u63cf\u7ed3\u679c\u683c\u5f0f\u4e92\u8f6c&#xff08;json\u2192html\/cyclonedx\/spdx&#xff09;<br \/>\ncomponent (comp)  # \u67e5\u8be2\u7ec4\u4ef6\u4fe1\u606f<br \/>\nfile_count (fc)   # \u7edf\u8ba1\u76ee\u5f55\u6587\u4ef6\u6570\u91cf<br \/>\nutils (ut)        # \u5de5\u5177\u96c6<\/p>\n<h2 id=\"%E4%BA%8C%E3%80%81%E6%A0%B8%E5%BF%83%E5%91%BD%E4%BB%A4%EF%BC%9Ascan%EF%BC%88%E6%BA%90%E7%A0%81%E6%89%AB%E6%8F%8F%EF%BC%89\">\u4e8c\u3001\u6838\u5fc3\u547d\u4ee4&#xff1a;scan&#xff08;\u6e90\u7801\u626b\u63cf&#xff09;<\/h2>\n<h3 id=\"%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95\">\u57fa\u7840\u8bed\u6cd5<\/h3>\n<p>scanoss-py scan [OPTIONS] \u6e90\u7801\u8def\u5f84<\/p>\n<h3 id=\"%E9%AB%98%E9%A2%91%E5%8F%82%E6%95%B0\">\u9ad8\u9891\u53c2\u6570<\/h3>\n<table>\n<tr>\u53c2\u6570\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>&#8211;apiurl URL<\/td>\n<td>\u6307\u5b9a\u79c1\u6709 Scanoss \u670d\u52a1\u5730\u5740&#xff08;\u79c1\u6709\u5316\u5fc5\u987b\u52a0&#xff01;&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#8211;key API_KEY<\/td>\n<td>\u79c1\u6709\u670d\u52a1 \/ \u516c\u6709\u4e91\u5bc6\u94a5<\/td>\n<\/tr>\n<tr>\n<td>-o, &#8211;output FILE<\/td>\n<td>\u8f93\u51fa\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>-f, &#8211;format<\/td>\n<td>\u8f93\u51fa\u683c\u5f0f&#xff1a;json\/html\/cyclonedx\/spdx<\/td>\n<\/tr>\n<tr>\n<td>&#8211;wfp file.wfp<\/td>\n<td>\u76f4\u63a5\u626b\u63cf\u9884\u5148\u751f\u6210\u7684\u6307\u7eb9\u6587\u4ef6&#xff0c;\u4e0d\u626b\u63cf\u6e90\u7801<\/td>\n<\/tr>\n<tr>\n<td>&#8211;dep pom.xml<\/td>\n<td>\u9644\u52a0\u4f9d\u8d56\u6e05\u5355\u589e\u5f3a\u626b\u63cf<\/td>\n<\/tr>\n<tr>\n<td>&#8211;exclude .git,node_modules<\/td>\n<td>\u6392\u9664\u76ee\u5f55 \/ \u6587\u4ef6&#xff0c;\u9017\u53f7\u5206\u9694<\/td>\n<\/tr>\n<tr>\n<td>&#8211;quiet<\/td>\n<td>\u9759\u9ed8\u6a21\u5f0f&#xff0c;\u53ea\u8f93\u51fa\u9519\u8bef<\/td>\n<\/tr>\n<tr>\n<td>&#8211;trace<\/td>\n<td>\u5f00\u542f\u8be6\u7ec6\u8c03\u8bd5\u65e5\u5fd7<\/td>\n<\/tr>\n<tr>\n<td>&#8211;timeout 300<\/td>\n<td>\u8bf7\u6c42\u8d85\u65f6&#xff08;\u79d2&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>&#8211;proxy http:\/\/127.0.0.1:7890<\/td>\n<td>\u4ee3\u7406<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"%E5%AE%9E%E7%94%A8%E7%A4%BA%E4%BE%8B\">\u5b9e\u7528\u793a\u4f8b<\/h3>\n<h4 id=\"1%EF%BC%89%E7%A7%81%E6%9C%89%E5%8C%96%E5%86%85%E7%BD%91%E6%89%AB%E6%8F%8F%EF%BC%8C%E7%9B%B4%E6%8E%A5%E8%BE%93%E5%87%BA%20HTML%20%E6%8A%A5%E5%91%8A%EF%BC%88%E4%BD%A0%E9%9C%80%E8%A6%81%E7%9A%84%EF%BC%89\">1&#xff09;\u79c1\u6709\u5316\u5185\u7f51\u626b\u63cf&#xff0c;\u76f4\u63a5\u8f93\u51fa HTML \u62a5\u544a&#xff08;\u4f60\u9700\u8981\u7684&#xff09;<\/h4>\n<p>scanoss-py scan \\\\<br \/>\n&#8211;apiurl http:\/\/x.x.x.x:8083 \\\\<br \/>\n&#8211;key \u4f60\u7684\u5bc6\u94a5 \\\\<br \/>\n&#8211;exclude node_modules,.git,dist \\\\<br \/>\n-f html -o scan_result.html \\\\<br \/>\n.\/project_source<\/p>\n<h4 id=\"2%EF%BC%89%E8%BE%93%E5%87%BA%20JSON%20%E5%8E%9F%E5%A7%8B%E7%BB%93%E6%9E%9C%EF%BC%8C%E5%90%8E%E7%BB%AD%E8%BD%AC%E6%8A%A5%E8%A1%A8\">2&#xff09;\u8f93\u51fa JSON \u539f\u59cb\u7ed3\u679c&#xff0c;\u540e\u7eed\u8f6c\u62a5\u8868<\/h4>\n<p>scanoss-py scan &#8211;apiurl http:\/\/x.x.x.x:8083 -o scan_raw.json .\/code<\/p>\n<h4 id=\"3%EF%BC%89%E5%85%AC%E7%BD%91%E5%85%8D%E8%B4%B9%E6%89%AB%E6%8F%8F%EF%BC%88%E9%BB%98%E8%AE%A4api.osskb.org%EF%BC%8C%E9%99%90%E6%B5%81%EF%BC%89\">3&#xff09;\u516c\u7f51\u514d\u8d39\u626b\u63cf&#xff08;\u9ed8\u8ba4api.osskb.org&#xff0c;\u9650\u6d41&#xff09;<\/h4>\n<\/p>\n<p>scanoss-py scan -f html -o public_scan.html .\/code<\/p>\n<h2 id=\"%E4%B8%89%E3%80%81fingerprint%20%2Fwfp%20%E6%8C%87%E7%BA%B9%E7%94%9F%E6%88%90%EF%BC%88%E7%A6%BB%E7%BA%BF%E6%96%B9%E6%A1%88%E5%BF%85%E5%A4%87%EF%BC%89\">\u4e09\u3001fingerprint \/wfp \u6307\u7eb9\u751f\u6210&#xff08;\u79bb\u7ebf\u65b9\u6848\u5fc5\u5907&#xff09;<\/h2>\n<p>\u5148\u672c\u5730\u751f\u6210\u6307\u7eb9\u6587\u4ef6&#xff0c;\u518d\u4e0a\u4f20\u5230\u670d\u52a1\u7aef\u626b\u63cf&#xff0c;\u9002\u5408\u8d85\u5927\u9879\u76ee\u3001CI \u5206\u6279\u626b\u63cf<\/p>\n<p># \u751f\u6210\u6307\u7eb9\u6587\u4ef6<br \/>\nscanoss-py fingerprint .\/code -o source.wfp<\/p>\n<p># \u4f7f\u7528\u6307\u7eb9\u6587\u4ef6\u626b\u63cf<br \/>\nscanoss-py scan &#8211;apiurl http:\/\/x.x.x.x:8083 &#8211;wfp source.wfp -o result.json<\/p>\n<h2 id=\"%E5%9B%9B%E3%80%81convert%20%E6%A0%BC%E5%BC%8F%E8%BD%AC%E6%8D%A2%EF%BC%88%E9%87%8D%E7%82%B9%EF%BC%81%E5%BE%88%E5%A4%9A%E4%BA%BA%E5%88%86%E5%BC%80%E6%89%AB%E6%8F%8F%20%2B%20%E8%BD%AC%20html%EF%BC%89\">\u56db\u3001convert \u683c\u5f0f\u8f6c\u6362&#xff08;\u91cd\u70b9&#xff01;\u5f88\u591a\u4eba\u5206\u5f00\u626b\u63cf &#043; \u8f6c html&#xff09;<\/h2>\n<p>\u5982\u679c\u626b\u63cf\u5148\u8f93\u51fa json&#xff0c;\u4e4b\u540e\u968f\u65f6\u8f6c\u6362\u6210 HTML\u3001SBOM&#xff0c;\u4e0d\u7528\u91cd\u65b0\u626b\u63cf&#xff01;<\/p>\n<p># json \u8f6c html<br \/>\nscanoss-py convert scan_raw.json -f html -o report.html<\/p>\n<p># json \u8f6c CycloneDX SBOM&#xff08;\u5408\u89c4\u5ba1\u8ba1\u5e38\u7528&#xff09;<br \/>\nscanoss-py convert scan_raw.json -f cyclonedx -o bom.xml<\/p>\n<h2 id=\"%E4%BA%94%E3%80%81dependencies%20%E4%BE%9D%E8%B5%96%E8%A7%A3%E6%9E%90\">\u4e94\u3001dependencies \u4f9d\u8d56\u89e3\u6790<\/h2>\n<p>\u5355\u72ec\u63d0\u53d6\u9879\u76ee\u5305\u7ba1\u7406\u4f9d\u8d56&#xff08;maven\/npm\/pip\/go \u7b49&#xff09;<\/p>\n<p>scanoss-py dependencies .\/pom.xml -o dep.json<\/p>\n<h2 id=\"%E5%85%AD%E3%80%81component%20%E7%BB%84%E4%BB%B6%E6%9F%A5%E8%AF%A2\">\u516d\u3001component \u7ec4\u4ef6\u67e5\u8be2<\/h2>\n<p>\u901a\u8fc7 PURL \u67e5\u8be2\u7ec4\u4ef6\u8bb8\u53ef\u8bc1\u3001\u6f0f\u6d1e\u4fe1\u606f<\/p>\n<p>scanoss-py component &#8211;purl &#034;pkg:npm\/lodash&#064;4.17.21&#034; &#8211;apiurl http:\/\/x.x.x.x:8083<\/p>\n<h2 id=\"%E4%B8%83%E3%80%81%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E6%96%B9%E5%BC%8F%EF%BC%88CI%20%E6%B5%81%E6%B0%B4%E7%BA%BF%E6%8E%A8%E8%8D%90%EF%BC%8C%E4%B8%8D%E7%94%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%98%8E%E6%96%87%E5%AF%86%E9%92%A5%EF%BC%89\">\u4e03\u3001\u73af\u5883\u53d8\u91cf\u65b9\u5f0f&#xff08;CI \u6d41\u6c34\u7ebf\u63a8\u8350&#xff0c;\u4e0d\u7528\u547d\u4ee4\u884c\u660e\u6587\u5bc6\u94a5&#xff09;<\/h2>\n<p># Linux\/Mac<br \/>\nexport SCANOSS_API_URL&#061;http:\/\/x.x.x.x:8083<br \/>\nexport SCANOSS_API_KEY&#061;xxx<br \/>\nscanoss-py scan -o result.html .\/source<\/p>\n<p># Powershell<br \/>\n$env:SCANOSS_API_URL&#061;&#034;http:\/\/x.x.x.x:8083&#034;<br \/>\n$env:SCANOSS_API_KEY&#061;&#034;xxx&#034;<\/p>\n<h2 id=\"%E5%85%AB%E3%80%81%E5%B8%B8%E8%A7%81%E9%81%BF%E5%9D%91%E6%B8%85%E5%8D%95\">\u516b\u3001\u5e38\u89c1\u907f\u5751\u6e05\u5355<\/h2>\n<li>\n<p>\u274c scanoss-py &#8211;apiurl xxx scan . \u2705 scanoss-py scan &#8211;apiurl xxx . \u53c2\u6570\u5fc5\u987b\u653e\u5728\u5b50\u547d\u4ee4scan\u4e4b\u540e&#xff01;\u8fd9\u5c31\u662f\u4f60 invalid choice \u7684\u6839\u6e90&#xff01;<\/p>\n<\/li>\n<li>\n<p>HTML \u62a5\u544a\u53ea\u80fd\u901a\u8fc7 -f html \u8f93\u51fa&#xff0c;\u6216\u8005\u4f7f\u7528 convert \u8f6c\u6362 json \u7ed3\u679c<\/p>\n<\/li>\n<li>\n<p>\u79c1\u6709\u670d\u52a1\u5730\u5740\u4e0d\u8981\u5e26\u540e\u7f00 \/scan\/direct&#xff0c;scanoss-py \u4f1a\u81ea\u52a8\u62fc\u63a5\u63a5\u53e3\u8def\u5f84 \u6b63\u786e&#xff1a;http:\/\/x.x.x.x:8083 \u9519\u8bef&#xff1a;http:\/\/x.x.x.x:8083\/scan\/direct<\/p>\n<\/li>\n<li>\n<p>\u9047\u5230\u63a5\u53e3\u9650\u6d41&#xff1a;\u4f18\u5148\u4f7f\u7528\u3010wfp \u6307\u7eb9\u5206\u6279\u626b\u63cf\u3011\u65b9\u6848<\/p>\n<\/li>\n<h2 id=\"%E4%B9%9D%E3%80%81CI%20%E6%B5%81%E6%B0%B4%E7%BA%BF%E6%A0%87%E5%87%86%E5%AE%8C%E6%95%B4%E8%84%9A%E6%9C%AC%E7%A4%BA%E4%BE%8B%EF%BC%88Anolis%20OS%20%E5%8F%AF%E7%94%A8%EF%BC%89\">\u4e5d\u3001CI \u6d41\u6c34\u7ebf\u6807\u51c6\u5b8c\u6574\u811a\u672c\u793a\u4f8b&#xff08;Anolis OS \u53ef\u7528&#xff09;<\/h2>\n<\/p>\n<p>SOURCE_PATH&#061;&#034;.\/code&#034;<br \/>\nAPI_URL&#061;&#034;http:\/\/x.x.x.x:8083&#034;<br \/>\nAPI_KEY&#061;&#034;xxx&#034;<\/p>\n<p>scanoss-py scan \\\\<br \/>\n    &#8211;apiurl ${API_URL} \\\\<br \/>\n    &#8211;key ${API_KEY} \\\\<br \/>\n    &#8211;exclude node_modules,.git,venv,build \\\\<br \/>\n    -f html \\\\<br \/>\n    -o scanoss_report.html \\\\<br \/>\n    ${SOURCE_PATH}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55<br \/>\n\u26a0\ufe0f\u3010\u81f4\u547d\u9519\u8bef\u590d\u76d8&#xff08;\u6211\u4e4b\u524d\u8e29\u5751\u70b9&#xff09;\u3011<br \/>\n\u274c\u9519\u8bef\u5199\u6cd5&#xff08;\u4f1a\u62a5 invalid choice: http:\/\/xxx&#xff09;<br \/>\n\u2705\u79c1\u6709\u5316\u90e8\u7f72\u3010\u6807\u51c6\u6b63\u786e\u6a21\u677f\u3011<br \/>\n\u4e00\u3001\u9876\u5c42\u57fa\u7840\u547d\u4ee4&#xff08;\u5168\u5c40&#xff09;<br \/>\n\u6240\u6709\u5b50\u547d\u4ee4\u6e05\u5355&#xff08;1.54.2 \u7a33\u5b9a\u7248&#xff09;<br \/>\n\u4e8c\u3001\u6838\u5fc3\u547d\u4ee4&#xff1a;scan&#xff08;\u6e90\u7801\u626b\u63cf&#xff09;<br \/>\n\u57fa\u7840\u8bed\u6cd5<br \/>\n\u9ad8\u9891\u53c2\u6570<br \/>\n\u5b9e\u7528\u793a\u4f8b<br \/>\n1&#xff09;\u79c1\u6709\u5316\u5185<\/p>\n","protected":false},"author":2,"featured_media":91197,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2961],"topic":[],"class_list":["post-91198","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-2961"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/91198.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 \u26a0\ufe0f\u3010\u81f4\u547d\u9519\u8bef\u590d\u76d8&#xff08;\u6211\u4e4b\u524d\u8e29\u5751\u70b9&#xff09;\u3011 \u274c\u9519\u8bef\u5199\u6cd5&#xff08;\u4f1a\u62a5 invalid choice: http:\/\/xxx&#xff09; \u2705\u79c1\u6709\u5316\u90e8\u7f72\u3010\u6807\u51c6\u6b63\u786e\u6a21\u677f\u3011 \u4e00\u3001\u9876\u5c42\u57fa\u7840\u547d\u4ee4&#xff08;\u5168\u5c40&#xff09; \u6240\u6709\u5b50\u547d\u4ee4\u6e05\u5355&#xff08;1.54.2 \u7a33\u5b9a\u7248&#xff09; \u4e8c\u3001\u6838\u5fc3\u547d\u4ee4&#xff1a;scan&#xff08;\u6e90\u7801\u626b\u63cf&#xff09; \u57fa\u7840\u8bed\u6cd5 \u9ad8\u9891\u53c2\u6570 \u5b9e\u7528\u793a\u4f8b 1&#xff09;\u79c1\u6709\u5316\u5185\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/91198.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-07T02:48:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807024840-6a754788a5073.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91198.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/91198.html\",\"name\":\"scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-07T02:48:43+00:00\",\"dateModified\":\"2026-08-07T02:48:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/91198.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/91198.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91198.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/91198.html","og_locale":"zh_CN","og_type":"article","og_title":"scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 \u26a0\ufe0f\u3010\u81f4\u547d\u9519\u8bef\u590d\u76d8&#xff08;\u6211\u4e4b\u524d\u8e29\u5751\u70b9&#xff09;\u3011 \u274c\u9519\u8bef\u5199\u6cd5&#xff08;\u4f1a\u62a5 invalid choice: http:\/\/xxx&#xff09; \u2705\u79c1\u6709\u5316\u90e8\u7f72\u3010\u6807\u51c6\u6b63\u786e\u6a21\u677f\u3011 \u4e00\u3001\u9876\u5c42\u57fa\u7840\u547d\u4ee4&#xff08;\u5168\u5c40&#xff09; \u6240\u6709\u5b50\u547d\u4ee4\u6e05\u5355&#xff08;1.54.2 \u7a33\u5b9a\u7248&#xff09; \u4e8c\u3001\u6838\u5fc3\u547d\u4ee4&#xff1a;scan&#xff08;\u6e90\u7801\u626b\u63cf&#xff09; \u57fa\u7840\u8bed\u6cd5 \u9ad8\u9891\u53c2\u6570 \u5b9e\u7528\u793a\u4f8b 1&#xff09;\u79c1\u6709\u5316\u5185","og_url":"https:\/\/www.wsisp.com\/helps\/91198.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-07T02:48:43+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260807024840-6a754788a5073.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/91198.html","url":"https:\/\/www.wsisp.com\/helps\/91198.html","name":"scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-07T02:48:43+00:00","dateModified":"2026-08-07T02:48:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/91198.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/91198.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/91198.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"scanoss-py 1.54.2 \u5b8c\u6574\u547d\u4ee4\u624b\u518c\uff082026\u5e748\u6708\u5f53\u524d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=91198"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91198\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/91197"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=91198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=91198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=91198"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=91198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}