Selecting the correct Python interpreter in VSCode's Python Extension

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • These are the settings adjustments you'll need to make to use a conda Python environment to execute your code inside of VSCode.

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

  • @Djmattymulz
    @Djmattymulz 2 года назад +12

    It's amazing how long it took me to find this video, which covers *exactly* what I needed. It wasn't complicated once it was laid out. Thank you SO much!

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

      can u help me because i installed python and theres no version on my screen i dont have a interpreter.

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

    Oh my gosh! I spend 2 days searching for the answer and you have it. Thanks a lot man.

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

    two years later and this video is still helpful, was going crazy for hours regarding python-decouple package and running in iTerm vs vscode provided two different results. Thank you for sharing and explaining

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

    Thanks. This helped me from going crazy with an old Python being listed in the corner still.

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

    dude this helped me out so much! I was trying to install Selenium. But anytime I installed, it went to the wrong interpreter. Thank you dude!

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

    I am from egypt and i want to thank you so much for this detailed demonstration , really i love you maaaan 😆😆

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

    Wow, spent the past hour trying to figure this out for the Beautiful Soup module in VSCode. This video was exactly what I needed. Thanks so much for providing brother.

  • @nicoler2941
    @nicoler2941 2 года назад +12

    This was exactly what I was looking for! Thank you for this video!

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

    Thank you so much man. I had spent more than 3-4 hours trying to fix this. Your video was exactly what I needed!

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

    Thank you so much, this was incredibly useful. I had no idea what was going on, I could not import anything. Thank you once again.

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

    3:10 you'll find your answer , thanks boss great video

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

    amazing, looking for this solution since 2 days. You fixed it

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

    Thank you sir! my problem wasn't solved by the first step, but the "ctrl+shift+P" switching the correct interpreter !!! :D

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

    Very clear and lucid explanation. Subscribed. Cheers from Brazil.

  • @0xsuperman
    @0xsuperman Год назад +2

    Ok so I selected a specific python interpreter in VScode, however, the terminal still doesn't reflect to the selected python interpreter. It seems like you are suggesting there is no easy way to handle the selected python interpreter within VSCode, but I should open a separate command line prompt if I want to say pip install new libraries for the selected python interpreter, is that right?

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

    Awesome!! I used this to figure out how to reinstall Flask in the right environment

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

    Amazing walkthrough! You saved me all sorts of headache.

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

    wasnt the vid for me but u made me aware that is didnt enable python in VS and thats why i couldnt find my interpreters. Thanks

  • @Vignesh-mh6if
    @Vignesh-mh6if 2 года назад

    Thank you so much. Because of this issue, I never used my installed vscode. Glad that I found your video. Works perfectly. Thanks a lot

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

    Thanks a lot I was struggling with this issue for an embarrassing amount of time.

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

    Man, You should explain how to CREATE a new python interpreter path. In my case I have a new python.exe in my folder.
    However when I select it. It does not recognize the interpreter. Changing from already installed interpreters is trivial from that option...

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

    Omg I spent the whole day searching for this! thank you so much!!

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

    thank you so much, exactly what I was looking for

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

    Thank you so very much!! your explanation had really helped me figure out how VScode look on different interpreters

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

    you just saved my life

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

    You really saved my final test in the eletrical engineering, thanks a lot
    +1 subscriber/like

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

    A year late but you saved me anyway, thanks!

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

    Awesome!!! I am new to Python and this helped

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

    This is some very detail explanation. Thank you very much!!

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

    graciassssssssssssssssss, estuve buscando solucion por horas y por fin lo pude hacer

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

    Thank you for a job well done! I got mine fixed following your tutorial.

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

    Thanks, I appreciate your help! It save my time

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

    Command 'Python: Select Interpreter' resulted in an error. command 'python.setInterpreter' not found
    (edit: OK, in case it helps someone else who came here looking for the answer, solution is to click on the restricted window on the bottom and trust the folder)

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

    I've seen other teachers just click the run code play button, why are you saying we have to type the "python3 "filename.py" command just to run the code?? Your method works for me and runs the code, but when I click the run code play button in the top right hand corner, I get an error that say: /bin/sh: 1: python: not found ". I have python 3.9.2 installed. Also, when I go to RUN > Run Code Without Debugging, the code will execute without any errors. So my question is: Why can't I use that run code play button in the top right hand corner like my instructors are in their course videos? It's driving me crazy!!

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

    thanks man very helpful stuff

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

    That worked.
    Thank you.

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

    I have more complex problem of not being able to import local relative python files. I have the right interpreter

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

    Thank the lord! And that you specifically

  • @richard_wenner
    @richard_wenner 3 года назад

    Lifesaver! Cheers.

  • @dimaua1830
    @dimaua1830 3 года назад

    Thanks for the tutorial. I was able to import urllib3 with base anaconda interpreter.

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

    Trying to get BeautifulSoup to work. It's imported correctly, and I'm using the right interpreter. But 'soup' is still undefined. what a headache.

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

    Thank u so much for this video

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

    what if it still says module not found. I am trying to install selenium vs code mac. Chose python 3.8 intepretter tried my pip3 install selenium. I also entered interpreter path by clicking on + but it still throws an error.

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

    Thanks a lot, great help!

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

    thanks bro, you solve my problem

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

    Hi, I just installed VSCode in my MacBook Air m1 and trying to learn python
    after installing code runner and creating a sample print( ) code and hitting run code in OUTPUT
    it says "/bin/sh: python: command not found [Done] exited with code=127 in 0.008 seconds.

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

    what if my desired interpreter doesnt appear in the list of intepreters available, but definetly exists. its just that i dont want to search for it every time and i want vscode to detect it automatically. how can i add an intepreter (in a venv) to that list?

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

    Thanks, this helped a lot.

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

    This is great!! thanks a lot :)

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

    thank you for this video. very good!

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

    Thanks man, helped a lot

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

    Thanks a lot. Its very helpful.

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

    Thank You!

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

    Very useful! Thank you!!!!

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

    What if my venv is not shown in list of python interpreters?

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

    THANK YOU!!!!!!!!!!!!!

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

    Thank you so much

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

    Thank you.

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

    Thx a lot!

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

    Thankyou!

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

    it didn’t work it’s not the interpreter this is driving me crazy

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

    Thanks

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

    THank you

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

    the base interperter does not show up just the system ones

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

    Thank you!

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

    tnx a lot!

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

    i did that and still the problem?

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

    Thank You!!!

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

    GOD SENT

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

    Love it

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

    Thanks a lot!

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

    very very thanks bro / bhai (in hindi)

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

    thank you sir.

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

    tysm

  • @Idk-nl7fe
    @Idk-nl7fe 2 года назад

    I get an error when I select select interpreter

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

      You might have been disabled the python extension. It worked for me after enabling.

    • @Idk-nl7fe
      @Idk-nl7fe 2 года назад

      I just had to enable all features witch worked

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

    Thenx a lot

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

    ...and He said unto them, use the base python module, and all was well :) /I\

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

    thank yoou

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

    thank you ^_^b

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

    thank you, please give me your address so I can give you a free pizza

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

    nll