#๐ when i double click on main.py to open script this only open for 1 sec and later close black scree
163 messages ยท Page 1 of 1 (latest)
@silk tangle
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
HElp mepleasee
Python scripts close when finished, either by reaching the end of the code, or from an error
i have this problem with every file python
.py
You should probably run your python file from the command line instead of double clicking it
python path/to/file.py
@loud heath
when i click on main i see only black screen from administraction cmd like 0.1 sec
okay, but, where's the command prompt I told ya to pull up
what is this comman dprompt
give me link for download
it's preinstalled with every windows machine
I had python a long time ago and it opened normally every file after two clicks and now it doesn't want to
i did it
i preinstalled my windows
I'm not sure if it's called command prompt, since the language setting you have looks like polish, but
if you hit the windows key
cmd?
ah, you opened it in administrative mode
yeah, admin is unnecessary
you said your python file was on the desktop, correct?
what is the name of your file?
no no, include the quotes
what
you did not put the " around it
ddfhd
nope
you have to put those around it
correct
and put cd before that
yup!
YESS
cmd is terminal
yup yup
ok how
where find pip
DOWNLADING

now try py main.py again
OH WELL
I'm stupid lol
uhm, type py -m pip install -r requirements.txt
i did not realize there was a requirements file in there
when it's done, try py main.py once more
WAIT NO NO, HOLD ON
it worked
nothing printed
but it did not error, SO
it working fine
so where is it
SO HOW OPEN
you did
what are u expecting the file to do
that was image grabber i dont made this
only someone other
from hacking forum on vacbanwtf
so this file is clear?
have nothing?
ok thanks bye
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
its not clear
.py files dont work for my
like .bat works
.py no
pythonw.exe script.py perhaps
If it didn't work and if it was empty you would not have had this error
Show the code
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.