How to set up Python on Visual Studio Code

preview_player
Показать описание
How to setup Python on Visual Studio Code (vscode)

After installing python, open the command prompt/terminal, and type in python --version or py --version. If you have installed python successfully, you will see the version of python you have.

Open vscode, and create new file. Name it whatever you want, but be sure to include the .py extension.

On the left, click the extensions icon, and search for Python. Install the python extension by Microsoft. This will allow for Python support in vscode.
Then, search for code runner and install the extension. This will add a run button at the top right of your vscode. Clicking this button will run your python code.

After that, you are all set!

Java Game Programming Projects Playlist:

JavaScript Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!
Рекомендации по теме
Комментарии
Автор

If you run python --version or run your python code in vscode and see this error message:
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut...

Click the python installer again, and click modify, click next, and check "Add Python to Environment Variables", then click install.
Restart your computer afterwards and it should work now.

KennyYipCoding
Автор

Hey man, former Software Engineering student, now working a few years in cyber security department: Absolute great video. Very nice audio quality. I want to highlight how important it is for beginners to explain every single step i.e. "for me it says windows, so i download the windows version", "Click control-s to save it" etc. People usually have so many different backgrounds and when it comes to a video that is trying to board people on some new stuff this is really important :)

Nuram
Автор

Bro love this video. No useless talking, clear representation and flawless speech .

daily_content
Автор

Thank you for saying " its the blue one, not the purple one " that was really helpful

retrolu
Автор

Check out my html/css/javascript game tutorials!


Also if you have time, check out the Python to Ruby code translator demo that I made :)

KennyYipCoding
Автор

yo most of the videos are like 20 mins long, you are the best for keeping it straight to the point and keeping it short

programmer
Автор

Holy crap Kenny, you got yourself a sub. Friend referred me to Harvard's CS50 online course which I've been trying to study and follow along, but I could not for the life of me, get VSC set up for Python. The terminal just wasn't working for me and your video fixed it in 6 minutes. Well done dude.

fuwymechtopia
Автор

Still using this as a tutorial 2 years later. Thank you Kenny!

icydragon
Автор

simple, informative, straight to the point nice job

s.m.a
Автор

Went into this video expecting having to configure stuff. But I just started up vscode, selected python as language, installed plugin and boom - it's working.
Nice vid tho!

not_hanky_ou
Автор

OMG! Thank you so much dude. Super simple. Start to Finish. I grew up with Juypter and I have been struggling with VSC for months. Your video helped a ton

hyakushiki
Автор

Your a legend!!!! I was having issues with working python and you just solved all of them!! 👑

cheezy
Автор

Very useful. Even in 2024. Was having so many issues as a beginner running my code in VS code I nearly changed ide's lol. Thank you

Rk
Автор

thank you i was so confused on where to start at first helped me a lot

colin
Автор

Is there any way to clean up the terminal output not to write the location of the file twice? Have mine in nested folders and the output gets buried...

Luggruff
Автор

This video is very helpful..I've been facing problem in giving input to console..
Finally prblm solved😄

Sneha-gbiq
Автор

Do I need to create an environment to run Python on a Windows machine? I got VS Code running but it keeps asking me to create an environment?

PTNLemay
Автор

Amazing, thank you for the tutorial. Just about what is needed and a little extra to make coding smoother for my beginner self.

michaelai
Автор

Tysm kind sir! I was into coding and tryna know how python works. As a beginner this really helped me to begin some tests! tysm again!

darkclonexd
Автор

interesting scenario to me. When I cheched for version using "Python --version" and "Py --version" I got two different versions?! Does anyone know why this is and does it need to be solved somehow?

Phantastischphil