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.
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)
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.
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. 💗
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 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.
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.
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
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.
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?
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.
@@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
@@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.
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 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.
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!
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
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
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.
**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 }
4:30 scared the shit out of me when the voice changes
same
hahahaha
reminds me of one episode in Impractical Jokers
same
I thought my computer speaker was broken
Python path not shown
It is located in the Anaconda directory.
I am not finding the Python: Python Path in VS Code settings after following the vdo instructions
yeah me too, any answer to this?
I'm having the same challenge. I can't find the python path
python path is no longer used. use python default interpreter path
lol, I came here to find the solution for the terminal error.
Check out the updated video. It's linked in the description
It is not recognizing conda because you didn't add the option PATH while installing it up. Check on 2:02
Thank you for this! Spent way too long stumbling around trying to figure this out before I found your video.
VS Code used to be included in the anaconda distribution but I guess it isn't anymore? Sad
@@forrestdeters2426
from future,
Yes still sad
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.
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)
Thanks for the tip!
why my vscode didn't have the('base':conda) instead it says(virtualenv)
Thanks for this really useful video. Really helped me finally set up my environment and actually start coding! legend!
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.
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. 💗
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.
Thanks this worked for me!
You should have selected add anaconda to path variable while installing anaconda , that would have fixed 'conda' is not recorgnised problem.
I've installed it without doing that ..... so what should i do
Do you not understand what "Not Recommended" means? Long term inefficiency for short term gain.
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 ."
Worked for me too, thank you! Any idea why it works?
@@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.
How do you open vs code from anaconda prompt. I typed code, but anaconda prompt didn't find it.
Great tutorial. Straightforward and concise. Thank you.
You're welcome!
looks like you would have a problem importing numpy when using your setup
could you elaborate?
Thank you - very useful. I'm coming from VBA!
Welcome!
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.
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.
Thank you Works for me!! Amazing video
You're welcome!
Great video, now I finally can start coding -.-
Thank you, solved my issue. Much appreciated!
Glad it helped!
I also getting same error conda term is not recognized. Plz make a video on that
Thank you! Was really helpful!
You're welcome!
you really helped... thnx a lot, new sub
Glad I could help
Thank you. Now it works.
Glad it helped
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.
Either you don't have Python installed or vsc is not correctly pointed to a Python interpreter
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
What about if I am using Linux? I am working with Linux OS and cannot find the Python.exe file downloaded from Anaconda.
it worked for me Konrad. i have no clue why it didnt work for you ...
does not work. why is this at the top of my google results
Check out the updated video. It's linked in the description
if we done this can we see the visual studio in anaconda naviagtor
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.
If you're talking about the error related to the conda command, that is explained in the video.
An error python extension loading forever occurred. What should I do ?
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?
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.
@@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
@@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.
@@geospatialschool i get exactly the same error - does anyone have an idea how to fix this?
@@geospatialschool this worked, thank you!
didnt annaconda come preinstalled with vscode before?
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...
This might help: opensourceoptions.com/blog/setup-anaconda-python-to-work-with-visual-studio-code-on-windows/
right-click and press "open current file in interactive window" to run the script
I'm getting
'python' is not recognized as an internal or external command,
operable program or batch file.
When are you getting the error? What do you do that causes it?
@@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.
Thank you very much!
could you tell me why numpy library or pandas don´t work in this editor with anaconda? thanks
I can't be sure unless you have more information. My guess is that the editor is not linked to the anaconda Python interpreter
En el minuto 4:18 de que forma saca la caja de texto para escribir Open User Settings
CTRL+SHIFT+P
This method not working.
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!
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
thank you sir
It worked!!
Thankyou!
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
This is Visual studio Code, not visual studio.
Thanks man
Awsome, ty
Brilliant, thanks
You're welcome!
Thanks ❤❤
You're welcome 😊
Thank you :)
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.
Conda overcomplicated Python in my opinion, all you need is a python distro
Look for a different tutorial this isn't it.
Thaanks, salve my ass!
**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
}
Thanks for posting the solution!