#πŸ”’ can't run script

61 messages Β· Page 1 of 1 (latest)

vapid wharf
#

If I try to run nothing happends, I started py 2 hours ago and got suggested to use VSC instead of IDLE

clear elkBOT
#

@vapid wharf

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.

lost zinc
#

Did you install the python extension?

#

And do you have python installed

trim hill
vapid wharf
vapid wharf
vapid wharf
trim hill
trim hill
vapid wharf
trim hill
vapid wharf
#

then "browse" or "create virt envir"

trim hill
vapid wharf
#

it opens the top middle

trim hill
vapid wharf
trim hill
#

Venv

vapid wharf
vapid wharf
#

uv.exe
uvx.exe
uvw.exe
everything's installed!

#

too

trim hill
#

Have you added python to the system path?

vapid wharf
harsh yacht
#

If you don't get version info then python isn't on your PATH

vapid wharf
harsh yacht
harsh yacht
# vapid wharf 10

Okay, go to start, search for "environment variables". Right click the first entry that comes up and click "Run as administrator". You should see a window like this

vapid wharf
#

testing

harsh yacht
# vapid wharf yes I got the window

Click the "Environment variables" button. Another window should come up. In that other window in the second pane closest to the bottom (System variables) scroll down and highlight Path (keep in mind what's currently listed in your Path will be different than mine in the screenshot)

#

Then click the "Edit..." button

#

When you do so a third window will come up

vapid wharf
#

ect

harsh yacht
harsh yacht
# vapid wharf yes is path edit

Okay. Now you need to find the folder where your Python executable is installed. Should be in C:\Users\<your-username>\AppData\Local\Python\bin. Open file explorer, replace <your-username> in the path I just gave you with your username and enter that path in the top of the file explorer. Make sure the folder exists and there's a python.exe in that folder.

#

For example here's mine

vapid wharf
#

C:\Users\myuser\AppData\Local\Programs\Python

harsh yacht
harsh yacht
# vapid wharf yes

Okay, inside C:\Users\myuser\AppData\Local\Programs\Python\python314 make sure there's a python.exe file

harsh yacht
# vapid wharf

Okay good. So copy that folder path and go back to the "Edit environment variable" window that you had open. Hit the "New" button in that window. Use ctrl+v to paste the folder path in the input field that comes up. Then click the OK button. That window should close. Then hit the OK button in the "Environment variables" window and that window should close. Then hit the OK button in the "System Properties" window and that window will close too. Then open up a new terminal (not the same one that you had open before) and type python --version again.

harsh yacht
#

Good, Python is now on your path

vapid wharf
#

thanks allot @harsh yacht ❀️

harsh yacht
clear elkBOT
#
Python help channel closed for inactivity

This help channel has been closed. 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.