How to set up Python on Visual Studio Code

Поделиться
HTML-код
  • Опубликовано: 18 май 2021
  • How to setup Python on Visual Studio Code (vscode)
    Install Python: www.python.org/
    Install Visual Studio Code: code.visualstudio.com/
    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.
    To have code runner output to the terminal instead of the built-in output console, click the settings icon (gear icon) on the bottom left corner. Scroll down until you see Code Actions on Save. Click settings.json and the file will open.
    Add this line inside the json file: "code-runner.runInTerminal": true,
    After that, you are all set!
    Website: www.kennyyipcoding.com/
    Java Game Programming Projects Playlist:
    • Java Game Programming ...
    JavaScript Game Programming Projects Playlist:
    • JavaScript Game Progra...
    Subscribe for more coding tutorials 😄!

Комментарии • 324

  • @KennyYipCoding
    @KennyYipCoding  3 года назад +175

    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.

    • @maamarm46
      @maamarm46 3 года назад +4

      what do you mean python installer

    • @KennyYipCoding
      @KennyYipCoding  3 года назад +6

      @@maamarm46 Hi, when you download python from the website, it downloads an installer. You double click it to actually install python. Should be in your downloads folder.

    • @hirakmondal6174
      @hirakmondal6174 2 года назад +3

      This is because u are storing the file in other directory apart from C. For that u need to set the path variable, which is not shown in this video. Search some videos on RUclips on how to set path of python

    • @justKubus
      @justKubus 2 года назад +14

      why is this so difficult

    • @kimkarydas
      @kimkarydas 2 года назад

      Thank you Kenny,
      I had this issue when merging my VSCode, very helpful.
      Amazing Video.

  • @Nuram0
    @Nuram0 Год назад +132

    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 :)

    • @sandvichenjoyer9453
      @sandvichenjoyer9453 Месяц назад

      Hey I want to get into the same field what can I do to prepare?
      Before studying it

    • @Nuram0
      @Nuram0 Месяц назад

      @@sandvichenjoyer9453 are you talking about software engineer or cyber security?
      I don't think you need any preparation software engineering. All you need is self-management and structure. If you can plan your day/week in advance and stick to learning times you'll make it. Regarding cyber security, I always recommend starting with an audit position in a larger company or as a service provider auditing different clients. You get familiar with lots of regulatory stuff and a lot of opportunities to see different architectures, systems etc. Afterwards I would go and try out some pentesting (hackthebox; Kali Linux etc. Do it for at least a year. Thats a good basis I'd recommend for everybody out there.

  • @retrolu1
    @retrolu1 3 года назад +190

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

    • @barackdill3081
      @barackdill3081 2 года назад

      Me too

    • @sushileaderyt1957
      @sushileaderyt1957 2 года назад +6

      when you are colorblinded blue and purple :

    • @aleksjagger9770
      @aleksjagger9770 2 года назад +3

      Life saver, didn't know that the purple one is for freaking C++ lol

    • @srujanmpadmashali
      @srujanmpadmashali 2 года назад +4

      @@aleksjagger9770 no you get everything in purple but it takes lot of space and all feautures are not free so not recommended.

    • @coronaklledmebot4856
      @coronaklledmebot4856 2 года назад +1

      @@aleksjagger9770 vsc isn't ide. it's code editor. you can write code in any language here.

  • @daily_content19
    @daily_content19 2 года назад +41

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

  • @icydragon542
    @icydragon542 9 месяцев назад +2

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

  • @s.m.a1304
    @s.m.a1304 2 года назад +43

    simple, informative, straight to the point nice job

  • @fuwymechtopia8982
    @fuwymechtopia8982 Год назад +19

    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.

    • @losc4927
      @losc4927 Год назад +1

      I just started the class yesterday and was struggling with this as well lol

    • @merve4661
      @merve4661 Год назад +1

      @@losc4927 lol same I started yesterday and the setting up is harder than the program itself XD

  • @programmer9809
    @programmer9809 2 года назад +14

    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

  • @cheezy123
    @cheezy123 2 года назад +1

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

  • @AstraGamesStudios
    @AstraGamesStudios 2 года назад

    thank you so much ! not a 30min video with useless talk! great job!

  • @KennyYipCoding
    @KennyYipCoding  2 года назад +5

    Check out my html/css/javascript game tutorials!
    how to code WORDLE: ruclips.net/video/ckjRsPaWHX8/видео.html
    how to code SUDOKU: ruclips.net/video/S4uRtTb8U-U/видео.html
    how to code CONNECT 4: ruclips.net/video/4ARsthVnCTg/видео.html
    Also if you have time, check out the Python to Ruby code translator demo that I made :)
    ruclips.net/video/DXiKAEBdDBg/видео.html

  • @hyakushiki23
    @hyakushiki23 Год назад +3

    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

  • @colin985
    @colin985 2 года назад +2

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

  • @amra.haleem5175
    @amra.haleem5175 Год назад +1

    Thank you. Nice demonstration without any distracting music. : )

  • @yobaking
    @yobaking 2 года назад +1

    Comprehensive. Worth every single second!

  • @michaelai8274
    @michaelai8274 Год назад +1

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

  • @not_hanky_ou
    @not_hanky_ou Год назад

    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!

  • @FABESTAH
    @FABESTAH Год назад +4

    This was very helpful for me as a beginner, thank you very much :) ❤

  • @R0k47
    @R0k47 Месяц назад

    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

  • @darkclonexd
    @darkclonexd Год назад

    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!

  • @kamilsybilski2521
    @kamilsybilski2521 2 года назад +5

    Thank you very much. You did a great job and helped me.

  • @DebashisTalukdar
    @DebashisTalukdar 10 месяцев назад +1

    Thank you. Straightforward and easy to follow through.

  • @murtazotoshniyozov4688
    @murtazotoshniyozov4688 2 года назад

    Thank you man. That was amazingly helpful=)

  • @shontam
    @shontam Год назад

    Exactly what I was looking for. Thank you.

  • @krazythekat9390
    @krazythekat9390 Год назад

    thx man, u solved A LOT of problems I had!!!

  • @Sneha-gb7iq
    @Sneha-gb7iq Год назад +1

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

  • @mytek998
    @mytek998 Год назад

    Very, very helpful. Thank you a lot!

  • @multitaskprueba1
    @multitaskprueba1 2 года назад

    You are a genius! Amazing video!

  • @pseudo-black6343
    @pseudo-black6343 2 года назад

    It's working for me, thank you!

  • @Koatza262
    @Koatza262 2 месяца назад

    I could not believe my eyes when I finally found a video that ACTUALLY WORKS😅

  • @Jay-pe4gx
    @Jay-pe4gx 11 месяцев назад

    Thank you! It is now working!

  • @aarondeimund6898
    @aarondeimund6898 5 месяцев назад

    Thanks for this! I could not figure out how to change the output!

  • @yourohan6021
    @yourohan6021 2 года назад

    Bro u r amazing!!!!!! :) keep uploading

  • @cooperanderson6412
    @cooperanderson6412 8 месяцев назад

    Very helpful! Thank you so much!

  • @diamondforareasonn
    @diamondforareasonn Год назад

    Smart, subscribed 💯 thanks alot bud

  • @Gabriella-jf
    @Gabriella-jf Месяц назад

    I was burning my brain with that py files. I just runned as it was and still worked.

  • @crackedizzy
    @crackedizzy 19 дней назад

    Thank you so much, this was clear and concise

  • @me_SumanRegmi
    @me_SumanRegmi Год назад

    Thanks a lot Man! You are amazing!

  • @MegaBalgeet
    @MegaBalgeet Год назад

    helped me so much! thanks man

  • @RealTimeTech222
    @RealTimeTech222 Год назад

    Thank you man! much love!

  • @ilcapitano316
    @ilcapitano316 2 года назад

    thanQ very helpful video Kenny

  • @Unknown-xf6he
    @Unknown-xf6he 3 месяца назад

    Thank you man i was tryin to figure out why it wouldnt let me type and was goin nuts on it 😂

  • @mohammadmahfuzkhan5814
    @mohammadmahfuzkhan5814 2 года назад +1

    It was helpful. Thanks a lot

  • @PabloStarOk
    @PabloStarOk 10 месяцев назад

    Thanks, your video was helpful.

  • @lesrappelsprofitentauxcroy3023
    @lesrappelsprofitentauxcroy3023 2 года назад

    Nice video, it's only because of this video I subscribed to your channel .

  • @gnome6354
    @gnome6354 11 месяцев назад

    this deserved a subscribe

  • @MRST4SIO
    @MRST4SIO Год назад

    Thank you. This is very helpful

  • @ye-xionlin6976
    @ye-xionlin6976 Год назад

    this is very helpful! thanks

  • @eNit0x
    @eNit0x 2 года назад

    Thank you very much sir !

  • @user-jt1zp8ii3t
    @user-jt1zp8ii3t 5 месяцев назад

    Thank you. I understood this tutorial easily❤

  • @kingsleydjeagbo8795
    @kingsleydjeagbo8795 4 месяца назад

    Thank you! this video really help.

  • @babookumarheerani50
    @babookumarheerani50 2 года назад

    this video helped me thankyou

  • @purplemosasaurus5987
    @purplemosasaurus5987 2 года назад +2

    Thank you so much, this helped me a lot!

  • @woolfy02
    @woolfy02 2 года назад

    Easy enough to setup just frustrating to learn all these commands! It's overwhelming. You make it look so simple lol

  • @ing.jasmellreyna7398
    @ing.jasmellreyna7398 Год назад

    Hey man, thank u so much.

  • @Storiesandlessons1
    @Storiesandlessons1 3 месяца назад

    Your Video was helpful, thank you

  • @jonathanmendez310
    @jonathanmendez310 5 месяцев назад

    Thank you for this! I just got Vs code but said to install python when i had it already but you showing us the terminal part going up there it was hiden to me with the 3 dots. Pressed terminal did command prompt and there we go cx! Thank you!!!

  • @trsshoron9893
    @trsshoron9893 2 года назад

    Thanks man. 😊

  • @mohamed-fv4ux
    @mohamed-fv4ux Год назад

    You are awesome man

  • @kofeast
    @kofeast 2 года назад

    Thanks man!

  • @ilyasrusdi6165
    @ilyasrusdi6165 4 месяца назад

    thank you so much its help me a lot

  • @PawanBaral-uv8kq
    @PawanBaral-uv8kq 7 месяцев назад

    thx soo muxh man..

  • @THEITFACTORPODCAST
    @THEITFACTORPODCAST Год назад

    This was a great video

  • @minecraft_Humans_Robots
    @minecraft_Humans_Robots Год назад

    thank you million times

  • @faris.abuali
    @faris.abuali 2 года назад

    Thanks! 🖤

  • @lahiru-madushan
    @lahiru-madushan Год назад +1

    Thank you brother

  • @programandoconAlex
    @programandoconAlex Месяц назад

    thank you so much!!

  • @hastalavista8625
    @hastalavista8625 2 года назад

    Excellent Mate

  • @yourohan6021
    @yourohan6021 2 года назад +1

    i want more tutorials of VS CODE. I hope u will upload. :)

  • @koburi3100
    @koburi3100 Год назад

    thank you!

  • @martinkaspar5095
    @martinkaspar5095 Год назад

    howdy - awesome - ilove it. BTW - do i need to take care of envs etc. etx.?

  • @mm-qj2yy
    @mm-qj2yy Год назад

    Thank you!!!!

  • @domillima
    @domillima Год назад

    strong work man

  • @Alex-si5te
    @Alex-si5te Год назад

    Thank you so much

  • @mostafaua7432
    @mostafaua7432 2 года назад

    Thank you a lot

  • @svenfritsch9702
    @svenfritsch9702 20 дней назад

    excellent video!

  • @zeazzo2997
    @zeazzo2997 Год назад

    thank you so so so much

  • @bobinsarma713
    @bobinsarma713 2 года назад

    GOod Video thanks

  • @disintegratev6951
    @disintegratev6951 Год назад

    Bro I love you

  • @archsbrain9114
    @archsbrain9114 Год назад

    Thank you

  • @satoshiborishi6898
    @satoshiborishi6898 2 года назад

    Thanks buddy

  • @user-hp7ew5cy3l
    @user-hp7ew5cy3l 5 месяцев назад

    loved the video !

  • @user-zc3hg9xo7l
    @user-zc3hg9xo7l Год назад

    thank you

  • @mammad161
    @mammad161 2 года назад

    thanks dude

  • @OcTeT792
    @OcTeT792 2 года назад

    thanks man

  • @draque8730
    @draque8730 11 месяцев назад

    thx from france

  • @warren1192
    @warren1192 Год назад

    THanks!

  • @sarveshmagar6409
    @sarveshmagar6409 2 года назад

    you solve my bigest problem

  • @BK.motivational
    @BK.motivational Год назад

    thx bro

  • @akshuvignesh6968
    @akshuvignesh6968 4 месяца назад +1

    this was crisp

  • @omardiallo6931
    @omardiallo6931 6 месяцев назад

    thankls man

  • @emmasvensson160
    @emmasvensson160 Год назад

    thanks!

  • @Luggruff
    @Luggruff 9 месяцев назад

    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...

  • @luffyyyop3778
    @luffyyyop3778 7 месяцев назад

    thanks

  • @inciwing2832
    @inciwing2832 3 месяца назад

    very very thanksss

  • @zlobert9877
    @zlobert9877 Год назад

    Hey man is there any way we can remove our directory in the terminal? So we are left with only our terminal name(and also i see your name has a colour,mine is the same color as the text). Help with those two would be great

  • @deedeec160
    @deedeec160 Год назад +3

    Does using "py" as a command not work in Python version 3.11?

  • @joncharles5817
    @joncharles5817 Год назад +1

    My windows10 powershell says no such file or directory why won't it show up like yours

  • @Phantastischphil
    @Phantastischphil Год назад +1

    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?

  • @humairaadiba478
    @humairaadiba478 10 месяцев назад

    Hi! I just want to know if there is any problem if I don't use 'python' and just use 'py' while coding?