【问题标题】:python cmd still not recognized in VS shell在 VS shell 中仍然无法识别 python cmd
【发布时间】:2020-05-28 12:01:44
【问题描述】:

我不想使用“py myfile.py”,我使用“python myfile.py”。

  • 虽然运行 'py file.py' 有效。
  • 我确实安装了 python 扩展
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, or if a path was 
included, verify that the path is correct and try again.
    At line:1 char:1

VS 工作室仍然给我错误,但在此之前我做了“选择 python 解释器”。 它是在我的标准安装中设置的:

C:\Users\Admin\AppData\Local\Programs\Python\Python38

我在 SO 上关注了另一个类似的问题,是否重新启动 - 我做错了什么?

【问题讨论】:

    标签: python visual-studio


    【解决方案1】:

    你感兴趣的是py和python的区别。

    如果是这样,问题可能与此 What is the difference between 'py' and 'python' in the terminal? 重复

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-26
      • 2013-01-07
      • 1970-01-01
      • 2015-12-24
      相关资源
      最近更新 更多