简体   繁体   English

“使用退出代码1602完成的过程” python

[英]“Process finished with exit code 1602” python

I'm new with python, I downloaded phycharm, I tried to run a very simple code like print (5) but I'm getting this error: 我是python的新手,我下载了phycharm,我试图运行一个非常简单的代码,例如print (5)但出现此错误:

"C:\Computer Science python\python-3.6.0 (1).exe" "C:/Computer Science python/Practice python/First.py"

and

Process finished with exit code 1602 流程结束,退出代码为1602

python-3.6.0 (1).exe is the downloaded setup executable archive (downloaded twice by Firefox :)) python-3.6.0 (1).exe是下载的安装可执行文件存档(由Firefox下载了两次:)

You're trying to run your script with the installer . 您正在尝试使用安装程序运行脚本。 You have to install python (using elevated privileges). 您必须安装 python(使用提升的权限)。

The error you're getting is a very good match to this error ( link ): 您遇到的错误与该错误( link )非常匹配:

 ERROR_INSTALL_USEREXIT 1602    The user cancels installation.

Once installed, you'll be able to run your script by clicking on it or by typing 安装后,您可以通过单击脚本或键入以下内容来运行脚本

"C:/Computer Science python/Practice python/First.py"

in a command prompt (.py associated to the python executable installed by default somewhere like C:\\python36 ) 在命令提示符中(与默认情况下在C:\\python36类的位置安装的python可执行文件相关联的.py)

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

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