【问题标题】:he term 'python' is not recognized as the name of a cmdlet术语 \'python\' 未被识别为 cmdlet 的名称
【发布时间】:2023-01-28 00:04:35
【问题描述】:

我该如何解决这个问题? 我尝试在 vs 代码终端中运行此命令,但它一直出现此错误

PS C:\Users\Hesam\Desktop\cloud> python src/stats.py --chat_json C:\Users\Hesam\Desktop\chat ex\result.json --output_dir C:\Users\Hesam\Desktop\res.png
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name

我只想运行这个项目

【问题讨论】:

标签: python visual-studio-code terminal


【解决方案1】:

首先在你输入“python”的地方输入py。我的意思是键入 py 而不是 python。我希望它会起作用

py src/stats.py --chat_json C:UsersHesamDesktopchat 前 结果.json --output_dir C:UsersHesamDesktop es.png

【讨论】:

    猜你喜欢
    • 2021-06-24
    • 2019-10-12
    • 2017-12-11
    • 2021-12-09
    • 2020-02-25
    • 2020-04-17
    • 2018-09-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多