Visual Studio Code, Conda, And Python Environments (i Cannot Get It Working)
I am setting up Visual Studio Code on my pc and am running into difficulties with the python environment I created and Visual Studio Code. However, when running some test code, I g
Solution 1:
After much frustration trying to follow other solutions, this is what finally worked for me (on a Windows 10 machine) with Anaconda python installed.
- Open an Anaconda Prompt terminal.
- Choose the conda environment you want (e.g.
conda activate myenv1
) - Finally type
code
from the command line to launch visual studio code.
When I do that and then open any python file and click 'Run Python File in Terminal' (triangle in top right of editor) and all runs well.
Post a Comment for "Visual Studio Code, Conda, And Python Environments (i Cannot Get It Working)"