简体   繁体   中英

Visual studio code is stuck on Select Python Interpreter

I am trying to run a jupyter notebook on my Windows machine by using WSL2 to run it in Ubuntu 20.04. It was working perfectly fine yesterday but today it's not selecting a Python Interpreter. I have tried reinstalling Ubuntu, Anaconda and Visual Studio Code.

When I run

code path_to_notebook.ipynb

It opens the window below:

visual_studio_code

After a couple seconds the box (that I've made a yellow square around) pops up. When I click in the "Select Python Interpreter" button and select the interpreter that I want ( ~/anaconda3/bin/python ) nothing happens.

The Select Python Interpreter (red box) also stays there.

What should I do?

I've gotten around the problem by using $ jupyter notebook --no-browser in the terminal.

Unfortunately, this means that additional computer resources are required to run the notebook in my browser over a text editor. But it gets the job done.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM