Jupyter Lab is not using virtual environment

爱⌒轻易说出口 提交于 2019-12-22 22:21:12

问题


I created a virtual environment and installed ipython[all] and jupyter with pip. When I run jupyter lab, open a notebook, and try importing a package I installed inside the virtual environment, I get “ModuleNotFoundError.”

Running ipython in the console and importing works. Also, which jupyter does point me to the right executable in the virtual environment.


回答1:


In addition to installing jupyter, I need to install jupyter lab. Otherwise, even the virtual environment jupyter executable actually silently falls back to the system Jupyter Lab installation.



来源:https://stackoverflow.com/questions/52799158/jupyter-lab-is-not-using-virtual-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!