简体   繁体   中英

Problems with using VS Code and miniconda for python notebooks

I have a conda base environment that I want to use for a python notebook. In this base environment I've installed all the packages that I need. However, when I launch a jupyter notebook through vscode, it always gives me a ModuleNotFound error:

代码

I've made sure that my python interpreter (bottom left) is conda base as well as the interpreter in the top right: 在此处输入图像描述

but the error never goes away.

The weird thing is that when I launch jupyter lab from terminal in my conda base environment, everything works fine as expected. What could be causing this error?

I uninstalled miniconda3 and installed anaconda instead. It magically fixed the problem. I love coding.

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