简体   繁体   English

Python 不起作用 - “程序‘python.exe’无法运行”

[英]Python doesn't work - "Program 'python.exe' failed to run"

After trying to copy a file with Google Chrome logins using a Python program, the antivirus issued a warning about a threat, and the next time it was launched, it gives the following error on the command line:在尝试使用 Python 程序复制 Google Chrome 登录的文件后,防病毒软件发出了威胁警告,下次启动时,在命令行上出现以下错误:

Program 'python.exe' failed to run: The file cannot be accessed by the systemAt line:1 char:1
+ python
+ ~~~~~~.
At line:1 char:1
+ python
+ ~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

Based on the error message + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException基于错误信息+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException

It is likely that your antivirus made a mistake that saw your Python executable as a virus and removed it.您的防病毒软件可能犯了一个错误,将您的 Python 可执行文件视为病毒并将其删除。

Simple uninstall and reinstall the Python from the official website and add that new executable to the whitelist of your antivirus should fix the issue.简单地从官方网站卸载并重新安装 Python,并将新的可执行文件添加到您的防病毒软件的白名单中即可解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM