Python - Setup Visual Studio Code with Anaconda

Поділитися
Вставка
  • Опубліковано 20 вер 2024

КОМЕНТАРІ • 117

  • @abdulazizalshukri6809
    @abdulazizalshukri6809 3 роки тому +101

    4:30 scared the shit out of me when the voice changes

  • @susanmaharjan3240
    @susanmaharjan3240 2 роки тому +9

    Python path not shown

  • @blueyahoo4868
    @blueyahoo4868 2 роки тому +8

    I am not finding the Python: Python Path in VS Code settings after following the vdo instructions

    • @ryannalvindo7553
      @ryannalvindo7553 2 роки тому +4

      yeah me too, any answer to this?

    • @Akosua1332
      @Akosua1332 Рік тому +1

      I'm having the same challenge. I can't find the python path

    • @yogidwisaputri
      @yogidwisaputri 10 місяців тому +4

      python path is no longer used. use python default interpreter path

  • @PavanMuppala
    @PavanMuppala 4 роки тому +49

    lol, I came here to find the solution for the terminal error.

    • @geospatialschool
      @geospatialschool  4 роки тому +5

      Check out the updated video. It's linked in the description

  • @jjmondal
    @jjmondal 4 роки тому +8

    It is not recognizing conda because you didn't add the option PATH while installing it up. Check on 2:02

  • @forrestdeters2426
    @forrestdeters2426 4 роки тому +11

    Thank you for this! Spent way too long stumbling around trying to figure this out before I found your video.

    • @forrestdeters2426
      @forrestdeters2426 4 роки тому +1

      VS Code used to be included in the anaconda distribution but I guess it isn't anymore? Sad

    • @madj0312
      @madj0312 4 роки тому +2

      @@forrestdeters2426
      from future,
      Yes still sad

  • @Ishkatan
    @Ishkatan 2 роки тому +7

    The conda path problem is a real problem. I got that far on my own but am struggling with the conda ativate base because without it many things that need to be imported don't work correctly.

  • @codeparity
    @codeparity 8 місяців тому +2

    instead of copying and pasting, bottom right corner, u can click the python version and select the environment. ( that is after u have installed anaconda)

  • @blablablabla2265
    @blablablabla2265 4 роки тому +5

    why my vscode didn't have the('base':conda) instead it says(virtualenv)

  • @aubertkubwange877
    @aubertkubwange877 2 роки тому +4

    Thanks for this really useful video. Really helped me finally set up my environment and actually start coding! legend!

  • @bennylbkooi
    @bennylbkooi 3 місяці тому

    Dear Sir, thanks for sharing your video.
    I have a very dumb question here. Do I need to keep Python/Anaconda (installed) in my laptop while using VS Code (assuming I have done steps you've shared above)? Or I may actually uninstall Python/Anaconda after VS Code setup done?
    Hope to hear from you, thanks in advance.

  • @sphinxz_gaming
    @sphinxz_gaming 2 роки тому +1

    4:32 Why is your voice so deep 😳
    By the way Thank you for the video! And It Explained very well step process installing the anaconda python interpreter on a command pallet. 💗

  • @farnscompany
    @farnscompany Рік тому +2

    Path field was not available for our team. In the end it was just easier to launch vs code through the included Anaconda Navigator UI.

  • @sukkritsharma
    @sukkritsharma 4 роки тому +5

    You should have selected add anaconda to path variable while installing anaconda , that would have fixed 'conda' is not recorgnised problem.

    • @wailinfo8824
      @wailinfo8824 4 роки тому +2

      I've installed it without doing that ..... so what should i do

    • @araucariapasquale1
      @araucariapasquale1 2 роки тому

      Do you not understand what "Not Recommended" means? Long term inefficiency for short term gain.

  • @linabaier2319
    @linabaier2319 4 роки тому +5

    I got the same error... for me it works opening visual studio code from the anaconda prompt:
    navigate to your workspace folder and start visual studio code typing "code ."

    • @jackrossi4677
      @jackrossi4677 4 роки тому

      Worked for me too, thank you! Any idea why it works?

    • @Lbdave94
      @Lbdave94 4 роки тому

      @@jackrossi4677 I think because from the anaconda prompt the virtual environment it's active, so it is able to recognize the command conda, while if you start in visual studio this doesn't happen.

    • @md.sharifulislam8296
      @md.sharifulislam8296 2 роки тому

      How do you open vs code from anaconda prompt. I typed code, but anaconda prompt didn't find it.

  • @jamespaz4333
    @jamespaz4333 Рік тому +3

    Great tutorial. Straightforward and concise. Thank you.

  • @fullmoongabo
    @fullmoongabo 4 роки тому +6

    looks like you would have a problem importing numpy when using your setup

    • @shafferfs
      @shafferfs 3 роки тому

      could you elaborate?

  • @wiredupjax
    @wiredupjax 2 роки тому +1

    Thank you - very useful. I'm coming from VBA!

  • @jiralee539
    @jiralee539 Рік тому +1

    Thank you for the tutorial ! But is it common to have a conda active base error? I followed all the steps but encounter this message.

  • @caiyu538
    @caiyu538 Рік тому

    the last step how to activate conda in t3erminal seems not work. I found installing any software in windows is more difficult for other OS.

  • @treasuresoflife7896
    @treasuresoflife7896 3 роки тому +1

    Thank you Works for me!! Amazing video

  • @philippr7594
    @philippr7594 3 роки тому +2

    Great video, now I finally can start coding -.-

  • @johntayc
    @johntayc 3 роки тому +1

    Thank you, solved my issue. Much appreciated!

  • @jafujafar9767
    @jafujafar9767 4 роки тому +1

    I also getting same error conda term is not recognized. Plz make a video on that

  • @TheEsisia
    @TheEsisia 2 роки тому +1

    Thank you! Was really helpful!

  • @uykerrykaberga
    @uykerrykaberga 2 роки тому +1

    you really helped... thnx a lot, new sub

  • @Aleksey_Krotov
    @Aleksey_Krotov 10 місяців тому

    Thank you. Now it works.

  • @swaroopds
    @swaroopds 6 місяців тому

    Hi thanks for the video. I have a program with just print("Welcome") and I am getting the below in the output [Running] python -u "c:\Users\Swaroop\Documents\Python\VS_Code\Test.py"
    Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
    [Done] exited with code=9009 in 0.156 seconds.
    Can you please help. I have set the Python Path as well. But it is not recognizing.

    • @geospatialschool
      @geospatialschool  6 місяців тому

      Either you don't have Python installed or vsc is not correctly pointed to a Python interpreter

    • @swaroopds
      @swaroopds 6 місяців тому

      Thanks for the reply. Well I am able to see the Python 3.11.7 (base ':conda) at the bottom right hand side. Still I have the same issue. Probably VSC is not pointed to python interpreter. If any help is much appreciated, I will also check in some other sites

  • @jameshizon4861
    @jameshizon4861 3 роки тому

    What about if I am using Linux? I am working with Linux OS and cannot find the Python.exe file downloaded from Anaconda.

  • @AparnaBL
    @AparnaBL 3 роки тому +1

    it worked for me Konrad. i have no clue why it didnt work for you ...

  • @jamieblakey-milner8572
    @jamieblakey-milner8572 4 роки тому +1

    does not work. why is this at the top of my google results

    • @geospatialschool
      @geospatialschool  4 роки тому

      Check out the updated video. It's linked in the description

  • @kkk9619kk
    @kkk9619kk 3 роки тому

    if we done this can we see the visual studio in anaconda naviagtor

  • @brock2k1
    @brock2k1 4 роки тому +12

    Basically a good video, easy to see the cursor and all, but why would you publish a video where you have errors that you can't explain? Figure out what is wrong and make a new video that shows how to do it without errors.

    • @geospatialschool
      @geospatialschool  4 роки тому

      If you're talking about the error related to the conda command, that is explained in the video.

  • @shikhargupta8789
    @shikhargupta8789 3 роки тому

    An error python extension loading forever occurred. What should I do ?

  • @HakaTech
    @HakaTech 4 роки тому +3

    Doesn't actually work. I get the following error when typing (import numpy): "The specified module could not be found."
    Do you have any idea on how to make it work?

    • @geospatialschool
      @geospatialschool  4 роки тому +1

      Open your Anaconda prompt. It will list the current environment to the left of the current path, it will probably be '(base)'. Type the command 'conda deactivate', now it will not list an environment to the left. Restart VS Code and it should work.

    • @HakaTech
      @HakaTech 4 роки тому

      @@geospatialschool Thanks for responding!
      1a) Opened the anaconda prompt and did the following. I run the code with the green arrow. First it says conda activate base -> the term conda is not recognized and then the same error as before with numpy
      1b) Opened anaconda powershell prompt and did as you described. Same result as over

    • @geospatialschool
      @geospatialschool  4 роки тому

      @@HakaTech Then something is wrong with your ananconda installation. Conda is the program for managing anaconda, so if it's not recognized as a command in the anaconda prompt something is wrong with your installation.

    • @moritzwolff9383
      @moritzwolff9383 4 роки тому

      @@geospatialschool i get exactly the same error - does anyone have an idea how to fix this?

    • @alexritter5282
      @alexritter5282 4 роки тому

      @@geospatialschool this worked, thank you!

  • @deathmaster4035
    @deathmaster4035 4 роки тому

    didnt annaconda come preinstalled with vscode before?

  • @jpf504
    @jpf504 2 роки тому

    This is a very helpfull video, but the bigger problem is getting conda to work properly in order to install libraries in
    virtual envs and activate them... In my setup that works only if i use the cmd Terminal in vs code (Windows) and always run my code in the Terminal. Trying to use the output console never works...

    • @geospatialschool
      @geospatialschool  2 роки тому

      This might help: opensourceoptions.com/blog/setup-anaconda-python-to-work-with-visual-studio-code-on-windows/

  • @sharvirtually9297
    @sharvirtually9297 3 роки тому

    right-click and press "open current file in interactive window" to run the script

  • @sepgorut2492
    @sepgorut2492 4 роки тому

    I'm getting
    'python' is not recognized as an internal or external command,
    operable program or batch file.

    • @geospatialschool
      @geospatialschool  4 роки тому

      When are you getting the error? What do you do that causes it?

    • @sepgorut2492
      @sepgorut2492 4 роки тому

      @@geospatialschool When I run the code in the output window there's a drop down list which I set to python. When I run the code it changes to 'Code' and I get an error: "[Running] python -u "e:\Python\test\test2.py"
      'python' is not recognized as an internal or external command,
      operable program or batch file.
      [Done] exited with code=1 in 0.035 seconds"
      In the bottom left I have Python 3.7.6 64-bit ('base': conda)
      When I run code using Spyder everything is fine. I am working through Python Engineers excellent tutorials on PyTorch and thought it would be good to use VScode as he does.
      Thanks for replying.

  • @hermannangecherubinkouassi2064
    @hermannangecherubinkouassi2064 4 роки тому +2

    Thank you very much!

  • @ncleeg
    @ncleeg 3 роки тому

    could you tell me why numpy library or pandas don´t work in this editor with anaconda? thanks

    • @geospatialschool
      @geospatialschool  3 роки тому

      I can't be sure unless you have more information. My guess is that the editor is not linked to the anaconda Python interpreter

  • @RobertoRuiz-bw8ln
    @RobertoRuiz-bw8ln 10 місяців тому

    En el minuto 4:18 de que forma saca la caja de texto para escribir Open User Settings

    • @PipeDAce
      @PipeDAce 2 місяці тому

      CTRL+SHIFT+P

  • @pythonista3858
    @pythonista3858 4 роки тому

    This method not working.

  • @ctaylr13
    @ctaylr13 4 роки тому

    please do a video on Django + anaconda debugger inside VS code. I setup something wrong causing the application to break when using the VS code debugger. Great Video!

  • @unsunken4710
    @unsunken4710 4 роки тому +2

    My Python book: ok so download VS code and then set up anaconda and your good
    Python Videos: Download Anaconda then VS Code and then find the interpreter and do this and that

  • @Burpeekanksss
    @Burpeekanksss 2 роки тому +1

    thank you sir

  • @moisesdiaz9852
    @moisesdiaz9852 4 роки тому +1

    It worked!!

  • @davidmackay1198
    @davidmackay1198 2 роки тому +1

    Thankyou!

  • @shubhamishra1546
    @shubhamishra1546 2 роки тому

    I have visual studio 19 installed and it doesn’t look like the one you are using. Where did i go wrong. I am using windows 11. It’s hard to follow when the screens don’t match

  • @apollofikz3738
    @apollofikz3738 4 роки тому +1

    Thanks man

  • @tobys51
    @tobys51 3 місяці тому

    Awsome, ty

  • @soy_leche
    @soy_leche 2 роки тому

    Brilliant, thanks

  • @priyanshu3646
    @priyanshu3646 Рік тому

    Thanks ❤❤

  • @LyricTroll
    @LyricTroll 3 роки тому

    Thank you :)

  • @errans_luxx
    @errans_luxx 2 роки тому +2

    This is the worst part of Python. Getting set up to do anything seems unnecessarily complicated. For R you download R, you download R Studio and you're ready to go.

    • @danielraymond3045
      @danielraymond3045 2 роки тому +3

      Conda overcomplicated Python in my opinion, all you need is a python distro

  • @benjtheo414
    @benjtheo414 2 роки тому

    Look for a different tutorial this isn't it.

  • @rayanirocha8692
    @rayanirocha8692 Рік тому +1

    Thaanks, salve my ass!

  • @benjaminbelay8991
    @benjaminbelay8991 8 місяців тому

    **Fix: conda not working in your vscode terminal.
    I spent hours trying to make this work, here is the solution.
    Add this to your settings.json file, located Preferences: Open User Settings (JSON)
    ...
    "python.condaPath": "C:/Users/benja/anaconda3_new/Scripts/conda.exe",
    "terminal.integrated.shellIntegration.enabled": false,
    "terminal.integrated.inheritEnv": true, // Set to true to inherit PATH environment
    "terminal.integrated.env.windows": {
    "PATH": "${env:PATH};C:/Users/****username****/anaconda3/Scripts" // Add the path to Conda's scripts
    }