Reputation: 429
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:
"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
Upvotes: 2
Views: 3933
Reputation: 140168
python-3.6.0 (1).exe
is the downloaded setup executable archive (downloaded twice by Firefox :))
You're trying to run your script with the installer. You have to install python (using elevated privileges).
The error you're getting is a very good match to this error (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
)
Upvotes: 3