#🔒 Problem with the Terminal

25 messages · Page 1 of 1 (latest)

hardy gyro
#

Hello, I tried to run the python --version command in the terminal but it gave me an error and I tried everything to resolve this error but nothing worked. Thanks in advance.P.S : I don't know much about it so that's why I'm probably going to look stupid

proud karmaBOT
#

@hardy gyro

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.

flat ginkgo
#

what was the error? how did you run your code? that'll give us more info.

hardy gyro
flat ginkgo
#

what operating system do you use? it looks like Python isn't installed

flat ginkgo
#

have you installed Python? it doesn't come default on Windows

hardy gyro
#

And also path

flat ginkgo
#

ah heck. those were my two guesses. sorry fam, this might be beyond me (I am very new)

hearty axle
hardy gyro
#

What i do ?

hearty axle
#

Ok, on Windows py is the Python launcher.
Where UNIXy instruction say things like python3 .... on Windows you usually say py .....

hardy gyro
#

OHHHHH

#

TYSM

#

I LOVE YOUUU

hearty axle
#

So:

  • py: should get you a Python prompt
  • py -m pip install foo: should install package foo
  • py myscript.py: should run the script in the file myscript.py
#

py also manages multiple Python installs, if you install a few versions.

hearty axle
#

No worries.

proud karmaBOT
#
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.