为什么我无法从命令提示符中的VS代码运行模块?它带来了这个错误p

问题描述 投票:0回答:1

import:术语'import'不被识别为cmdlet,函数,脚本文件或可运行程序的名称。检查拼写名称,或者如果包含路径,请验证路径是否正确,然后重试。在第1行:char:1+导入+ ~~~~~~+ CategoryInfo:ObjectNotFound:(import:String)[],CommandNotFoundException+ FullyQualifiedErrorId:CommandNotFoundException

python-3.x visual-studio-code module command-prompt
1个回答
0
投票

您必须先运行Python。

输入python然后点击Enter

© www.soinside.com 2019 - 2024. All rights reserved.