question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS Code with Python in Anaconda - weird environment name

See original GitHub issue

Hi 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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
yw5ajcommented, Oct 24, 2018

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:

C:\Users\shwang>conda env list
# conda environments:
#
                         C:\Users\shwang\AppData\Local\Continuum\Anaconda3
base                  *  C:\Users\shwang\AppData\Local\Continuum\anaconda3

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.)

0reactions
DonJayamannecommented, Oct 24, 2018

Please could you type the following into your terminal window and let me know what you get:

  • conda info --json
  • conda env list
  • Please could you download the below file (rename the extension to .vsix)
  • Uninstall your existing Python Extension
  • Install this new python extension (using the command Extensions: Install from VSIX)
  • Try it out (could be a little slow the first time, so please be patient)

python-2018.10.0-alpha.vsix.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found