Wasted 5 hours on select default shell, unbelievable... Thanks for posting, not sure how I would have been without this. But also darn you computer world, why make things so difficult. (p.s. I also have that return bug when it autocompletes when you want to go to new line instead)
This probably should have been obvious but after having issues importing packages with the vscode/anaconda set up I found that opening vscode from the anaconda navigator rather than directly opening vscode from my desktop fixed the issue
@Nicholas White it still shows a pop up in VS Code (Opened through Anaconda Navigator) stating "Duplicate entries in "env"", and asks me to open launch.json file.
To add to this, in the terminal section the drop down selection on the right has the option to select default shell. I checked cmd.exe rather than powershell and then restarted VSC and this worked for me.
Perhaps you mean to say "Select Default Profile" - in the Terminal drop-down, as I do not see Select Default Option in any other VS Code menu -- -anyone care to bring this comment home?
Thanks for this video. I finally got this working based on this and some of the comments. Let me summarize what worked for me . (.. and I have tried everything before) 1 follow the steps in the beginning of the video and add the 2 paths to system variables and as usual set default interpreter in vsc 2 change the default terimal in vsc to cmd. (this is what I was missing as used PowerShell before) running py files outsied from vsc, directly from cmd still requires -for me- to activate the selected env first. I dind it more convenient that it is done under the hood in vsc and no need for that extra line.
This method doesn't work for me. But I found a better way: just right click the mouse and choose "Run current file in python interactive window", you can see plots,outputs, and observe variables there, just like Spyder
Hi, Thanks for the video. However, even after setting the environment setting as shown above, I am getting an "Exception has occured: ImportError", "Importing the numpy c-extensions failed". I also tried to make it work by opening VS Code from within Anaconda Navigator, then it gives me a pop-up message stating "Duplicate entries in env", and asks me to open "Launch.json". Please advise, how I may be able to solve the issue. Thanks in advance.
Hello, can you please tell me how to get that "python" as an output interpreter instead of the default "powershell". What settings do I need? Please tell me this.
Thanks, I got rid of the errors but VSCode still isn't working right. Intellisense doesn't suggest basic stuff like existing variable names, and I can't go to definition of functions in the same file, giving "no definition found" even when the function is defined right next to the call
FINALLY found the solution. It was my Python Language Server in Settings which was set to None. I set it to Plyance, then restarted VSCode and it finally all works properly
Thank you! I'm just trying to figure out an IDE to use on windows in conjunction with Anaconda. Unfortunately, I didn't like any of the ones that can be installed directly through anaconda. The stuff I'm working on has grown too complicated to conveniently run/test with the jupyter-notebook copy-paste / command-line / text-editor trio.
Can you please make vedio on jupyter notebook with anaconda interpreter with some environment in vs code. When I run .ipynb in vs code ,I get message in vs code Time out waiting to get a heartbeat from kernel. Please sort out this problem.
Hi, thanks so much for this. i am new to the area and trying to get set up. i have all the steps done but i notice in my vs code terminal when running python code that i get message "Shell integration failed to activate". i have followed all your other steps i can run in command prompt etc. Just wondering if you may have any tips on same?
I've followed this video closely, but I am running into an issue where import as a command isn't functioning. I have been able to run any code from my VS scripts, very confusing. Any ideas on what to do next? I've selected my interpreter, typed python into my terminal, no luck. Any ideas?
@lifeinthefoyer8687 This video is a little dated and a few things have changed. My most recent content on this subject is this free course: geospatialschool.com/courses/python-quickstart/
he just gave an example by experimenting with numpy; He already downloaded numpy before hand, and you might not have. you can experiment by typing something like this: print('hello')
This works... but it really isn’t the advised way to do it.. anaconda doesn’t add itself to the path because it can “interfere with other software” which you even mention in your video.. then proceed to add it to the path anyway...
I'm not able to add multiple path values under path variables in the environment variable settings on Windows 8.1, the next value overwrites the previous one. Anyone with similar issue?
WIndows 8.1, like WIndows 7, has a single line dialog to edit the path variable. To add paths to the path variable, use semicolon between paths. Be careful not to accidentaly delete existing paths. I suggest you to copy whole variable content to a text editor, edit the paths there and paste them back to the variable by overwriting all the existing ones.
he just gave an example by experimenting with numpy; He already downloaded numpy before hand, and you might not have. you can experiment by typing something like this: print('hello')
Best explanation I've seen after days of digging around the net. Much appreciated.
Glad it was helpful!
Very clear explanation. It solved the issue why I couldnt use Anaconda in VSC. Thank you very much.
Spent hours trying to make it work before finding your video! Thank you so much!
You are welcome!
Same here!
Thanks a lot. Much needed help. Just wasted 1 whole day on this to get working before founding this video.
Glad it helped
8:49 moving to command prompt worked for me (no restart in my case). Thanx for the help
Beautiful explanation. Saved me from lots of lost time and unnecessary frustration
Glad it helped
He solves the problem of "conda is not recognized bla bla bla..."!!!!!!!!!
Thank you soooo much for this...after being frustrated for two days this saved me. I really appreciate you
Glad it helped!
Wasted 5 hours on select default shell, unbelievable... Thanks for posting, not sure how I would have been without this. But also darn you computer world, why make things so difficult.
(p.s. I also have that return bug when it autocompletes when you want to go to new line instead)
Thank you! I spent an hour trying to figure this out.
Glad I could help!
This probably should have been obvious but after having issues importing packages with the vscode/anaconda set up I found that opening vscode from the anaconda navigator rather than directly opening vscode from my desktop fixed the issue
The problem is the vscode launch is not in the navigator
@@unsunken4710 does it not show up in the same area as jupyterlab and spyder under applications for you?
Nicholas White no it’s just not there. There’s spyder, jupytr, Jupytr notebook, everything else but not VSCode
@Nicholas White it still shows a pop up in VS Code (Opened through Anaconda Navigator) stating "Duplicate entries in "env"", and asks me to open launch.json file.
It worked, thank you!
After wasting 7 hours on this it was the “select default shell” for me
love you bro ? youre a life saver
To add to this, in the terminal section the drop down selection on the right has the option to select default shell. I checked cmd.exe rather than powershell and then restarted VSC and this worked for me.
Thank you for saving the rest of us those 7 hours!!
Seriously man, that's a life saver..!
5 hours, you saved me 2, thx
I don't have any idea as to what you did on this video but it worked uno. Thanks.
the command prompt made the whole difference for me, thanks man
Selecting the cmd prompt through 'Select Default Option' worked for me. Thanks for this video!
Perhaps you mean to say "Select Default Profile" - in the Terminal drop-down, as I do not see Select Default Option in any other VS Code menu -- -anyone care to bring this comment home?
Thanks for this video. I finally got this working based on this and some of the comments. Let me summarize what worked for me . (.. and I have tried everything before)
1 follow the steps in the beginning of the video and add the 2 paths to system variables and as usual set default interpreter in vsc
2 change the default terimal in vsc to cmd. (this is what I was missing as used PowerShell before)
running py files outsied from vsc, directly from cmd still requires -for me- to activate the selected env first. I dind it more convenient that it is done under the hood in vsc and no need for that extra line.
thanks Andrew! step 2 fixed it for me!
Thanks! Never thought the type of terminal would cause so many troubles.
This is the issue I have, but it's still not working. I can use conda commands in the normal command prompt, but in VSC, they don't work.
This method doesn't work for me. But I found a better way: just right click the mouse and choose "Run current file in python interactive window", you can see plots,outputs, and observe variables there, just like Spyder
Thank you so much:)
You're a lifesaver. Thank you so much for your invaluable input!
Hi,
Thanks for the video. However, even after setting the environment setting as shown above, I am getting an "Exception has occured: ImportError", "Importing the numpy c-extensions failed". I also tried to make it work by opening VS Code from within Anaconda Navigator, then it gives me a pop-up message stating "Duplicate entries in env", and asks me to open "Launch.json". Please advise, how I may be able to solve the issue.
Thanks in advance.
Hello, can you please tell me how to get that "python" as an output interpreter instead of the default "powershell". What settings do I need? Please tell me this.
This video was super insightful! I am trying to follow the Data Science from Scratch by Joel Grus, and the book is good but very general on details.
Glad it was helpful!
Thank you so much!
I have been looking for a way to get the conda terminal for 3 days finally !!!!!
Glad I could help
a life saveer thank youuuu
Thanks a lot man, really helpful even now
Glad it helped
Thanks for video, I want to ask How can I add new library to my environment. Do I need just pip install when i choose py37
Thanks, this was very helpful!
Thanks, I got rid of the errors but VSCode still isn't working right. Intellisense doesn't suggest basic stuff like existing variable names, and I can't go to definition of functions in the same file, giving "no definition found" even when the function is defined right next to the call
FINALLY found the solution. It was my Python Language Server in Settings which was set to None. I set it to Plyance, then restarted VSCode and it finally all works properly
Thank you! I'm just trying to figure out an IDE to use on windows in conjunction with Anaconda. Unfortunately, I didn't like any of the ones that can be installed directly through anaconda. The stuff I'm working on has grown too complicated to conveniently run/test with the jupyter-notebook copy-paste / command-line / text-editor trio.
You are welcome!
I am getting an error :
Your shell has not been properly configured to use 'conda activate'
i have the same problem :/
try conda init
get rid of the word 'conda'... you should be using 'activate base' see video at 10:05
try conda init powershell
It works
@@rexlaurus5894 thats because you're god awful at following the tutorial. All you have to do is change the default terminal.
Thank you for this tutorial. I am able to set the path for my python.
Can you please make vedio on jupyter notebook with anaconda interpreter with some environment in vs code.
When I run .ipynb in vs code ,I get message in vs code
Time out waiting to get a heartbeat from kernel.
Please sort out this problem.
I can use conda commands in the normal command prompt, but in VSC, they still don't work.
Hi, thanks so much for this. i am new to the area and trying to get set up. i have all the steps done but i notice in my vs code terminal when running python code that i get message "Shell integration failed to activate". i have followed all your other steps i can run in command prompt etc. Just wondering if you may have any tips on same?
Thank you so much for this video!😁
Why when I change the environment(conda activate "---" ) the python version remains with the previous environment ?
still helpful
2:00 when witness protection kicks in
I do not have Python Path in VS Code
Thank you soooo much!!
You're welcome!
Thanks dear
Thanks a lot for this
I've followed this video closely, but I am running into an issue where import as a command isn't functioning. I have been able to run any code from my VS scripts, very confusing. Any ideas on what to do next? I've selected my interpreter, typed python into my terminal, no luck. Any ideas?
@lifeinthefoyer8687 This video is a little dated and a few things have changed. My most recent content on this subject is this free course: geospatialschool.com/courses/python-quickstart/
my code runs but the terminal says that the conda is not recognised
i keep getting
Original error was: DLL load failed while importing _multiarray_umath: The specified module could not be found.
I am having the same issue
got the solution just add the library of anaconda3 in ur path
Importing the numpy c-extensions failed. :(
he just gave an example by experimenting with numpy; He already downloaded numpy before hand, and you might not have. you can experiment by typing something like this:
print('hello')
how to solve mypy problem in python 2.7 in vscode?
I accidentally turned conda interpreter on how do I turn it off???
This works... but it really isn’t the advised way to do it.. anaconda doesn’t add itself to the path because it can “interfere with other software” which you even mention in your video.. then proceed to add it to the path anyway...
What is the advised way to do it?
Thank you so much!
thank you !
You're welcome!
THANK YOUUUUU!
I'm not able to add multiple path values under path variables in the environment variable settings on Windows 8.1, the next value overwrites the previous one. Anyone with similar issue?
WIndows 8.1, like WIndows 7, has a single line dialog to edit the path variable. To add paths to the path variable, use semicolon between paths. Be careful not to accidentaly delete existing paths. I suggest you to copy whole variable content to a text editor, edit the paths there and paste them back to the variable by overwriting all the existing ones.
I fucking love you bra.
Windows 7 is a little different when you click on the path :(
we cant activate base environment in powershell, conda commands works in cmd shell after activating conda base environment in terminal
Importing the numpy c-extensions failed. help ((
he just gave an example by experimenting with numpy; He already downloaded numpy before hand, and you might not have. you can experiment by typing something like this:
print('hello')
LMFAO it still doesn’t work, screw windows
The only reason you don't need 'conda activate env' is becuase you added Scripts which has activate.bat init.
Thank you!
You're welcome!