VS Code with Python in Anaconda - weird environment name
See original GitHub issueHi all,
When I tried to run Python with visual studio code (using Anaconda3), I got the following weird message:
Could not find conda environment: Anaconda3
I don’t think that’s because my path to Python is: C:\Users\shwang\AppData\Local\Continuum\anaconda3\pythonw.exe
and it took the folder name as environment name? Using the base
environment seems to be a very common thing (when you just want to put something together and try fast).
On my other computer, this works fine and it shows on the bottom left of the screen “Python 3.6.6 64-bit (‘Continuum’:virtualenv)”. On the computer that doesn’t work, it says “Python 3.6.6 64-bit (‘Anaconda3’: conda)”. I am not sure whether this matters or not.
Any thoughts?
Best, Shawn
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you so much @DonJayamanne for suggesting that! After I did
conda env list
as you suggested, I found a weird empty-named environment. In the Anaconda Navigator, it shows its name as “Anaconda3”.I removed that environment and then my entire Anaconda seems to be messed up… So I reinstalled the distribution and everything works great! Thank you so much for you help. Sorry for using much of your time - I truly appreciate it.
Below is the result of
conda env list
:PS: one guess of why this could have happened - in my Control Panel I have to entries of Python 3.6 (Anaconda). Maybe I accidentally installed it twice and then forgot.
(Apologies for not having the result from
conda info --json
: I pasted it in here and accidentally closed the browser. When I realized that, my Anaconda has already been uninstalled so I cannot find this information anymore.)Please could you type the following into your terminal window and let me know what you get:
.vsix
)Extensions: Install from VSIX
)python-2018.10.0-alpha.vsix.zip