微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

当我在 vs 代码中运行 .py 文件时出现此错误,它表示无法识别某些内容,任何人都可以帮我解决这个问题吗?

如何解决当我在 vs 代码中运行 .py 文件时出现此错误,它表示无法识别某些内容,任何人都可以帮我解决这个问题吗?

在 vs 代码中运行 .py 文件时出现此错误

n38-32" "c:/Users/hassan kh/Desktop/MY FOLDER/Python Projects/1_1.py"
& : The term 'C:/Users/hassan kh/AppData/Local/Programs/Python/python38-32' 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:3
+ & "C:/Users/hassan kh/AppData/Local/Programs/Python/python38-32" "c:/Users/hassa ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:/Users/hassan...hon/python38-32:String) [],CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

删除了 Python 和 vs 代码并重新安装了它,但我仍然收到此错误。如果有人知道或以前遇到过这个问题,请告诉我我该如何解决

解决方法

路径是不是应该在路径中加反斜杠\。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。