DEV Community

Discussion on: JupyterLab in a virtual environment

Collapse
 
joeneville_ profile image
Joe Neville

Hi, I'm running macOS 10.15.7.
I've just run through the commands as posted above and it works for me. Not particularly helpful for you, I understand.
“ModuleNotFoundError” looks like a Python error, it should have an additional message that tells you which module is missing.

Collapse
 
erikvangameren profile image
Erik van Gameren

And, if I have followed your instructions above and have installed Jupyter Lab, how do I handle the second time when I open Terminal?

Collapse
 
erikvangameren profile image
Erik van Gameren

Well, all the modules are missing, it seems that python looks in the wrong directory?

Thread Thread
 
joeneville_ profile image
Joe Neville

Sounds like you have not activated the virtual environment, if you had, then there would be a local python interpreter and the required dependencies i.e. those modules.
When you run this a second time, you need to start at step 4 and activate the virtual environment again.