#πŸ”’ i need helo setting uo python

86 messages Β· Page 1 of 1 (latest)

modern bane
#

Everytime i download python and i click a file for it to oopen in python it just closes.

olive cloakBOT
#

@modern bane

Python help channel opened

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.

modern bane
#

Sm1 help

young vapor
modern bane
#

Okay

#

What do i do?

remote cape
#

How did you write the script

modern bane
#

While i screenshare

modern bane
#

@remote cape

remote cape
modern bane
#

Why

#

@remote cape

modern bane
frozen sail
modern bane
#

Weym cd

frozen sail
modern bane
#

No

frozen sail
modern bane
#

Im using a windows school computer

frozen sail
#

Windows 10 or 11?

modern bane
#

11

frozen sail
#

Ok, open wt (type that in the search box in the bottom left).

#

"WIndows Terminal"

modern bane
#

Alr

#

Now what

frozen sail
#

Type cd ("Change Directory"), then the path to the directory containing the code. For example

cd C:/Users/YourName/Desktop
#

If the code was on your desktop, and your name was YourName.

modern bane
#

do i open to terminal?

frozen sail
#

Yes, cd is a command that's run from inside the terminal.

modern bane
#

it wont open

frozen sail
#

?

modern bane
#

when i click it, it does nothing

#

prolly cus im on a school comp

#

but i have no other computer

frozen sail
#

Try cmd instead of wt.

modern bane
#

cmd prompt is blocked

#

wat else

#

@frozen sail

frozen sail
#

The other way is to wrap all your code in a try that prints the error, and calls input to prevent closure:

try:
    # All your code
except Exception as e:
    print(e)
    input()
#

Then double click the program.

modern bane
#

bru

#

idk how to do that

modern bane
#

i got mine

#

what do i do now

#

@frozen sail

frozen sail
#

You added the try?

#

Not sure what you mean by "I got mine".

modern bane
#

what do i do with it

frozen sail
#

Oh, you managed to open the terminal?

modern bane
#

yuh

frozen sail
#

Now run py yourScript.py.

modern bane
#

can i just show u on screen share

frozen sail
#

You can post screenshots here, ya.

modern bane
#

it still keeps closing

frozen sail
#

What happens exactly when you run the py command I mentioned? Running a python program won't alone close the terminal it was run from.

modern bane
#

i think that its to long

#

or its cus im on a chool computer

frozen sail
#

I'm not sure what you mean.

If you're trying to learn to code though, you'll need a computer that isn't set up to block running code.

#

Using the terminal is a fairly critical skill in the long-term, so you need a machine that allows you to practice using the terminal.

modern bane
#

well whats a good computer

#

for coding only

#

thats not alot of money

frozen sail
#

A basic chromebook would even work.

Technically, if you have a screen, a Raspberry Pi is even sufficient. I did an entire class on a Pi.

modern bane
#

imma geta chromebook

frozen sail
#

I did a Reverse Engineering class at school on a Pi.

#

(To the guy that has now deleted the comment).

oak urchin
#

no way lmao

modern bane
#

is this good?

#

Dell Chromebook 11.6 inch Intel Celeron

frozen sail
#

I still have the Pi. I've been meaning to do a project with it.

modern bane
frozen sail
# modern bane is this good?

You can run Python on a potato. Almost literally anything will work unless you have specific needs, which you won't when starting out.

modern bane
#

i have like auto vouch tools auto chat tools

#

token joiners

#

auto adv

#

ect

frozen sail
#

The specs of the computer are almost irrelevant nowadays.

And by "specific requirements", I meant like if you're doing image/video processing or 3D game design. Those will require beefier specs.

modern bane
#

oh alr

frozen sail
#

99% of the projects that you'll be doing in the beginning (and even later) have very little in terms of memory/processing requirements. Modern computers are so powerful and have so much memory that they cover most usecases.

olive cloakBOT
#
Python help channel closed

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.