2021年1月27日星期三

ModulNotFoundError even though !pip freeze tells you it is downloaded on ubuntu through WSL

I am using Ubuntu18.04 through Windows Subsystems for Linux(WSL)

on ubuntu I run jupyter lab and try to import libraries however even though !pip freeze command states that all libraries are installed outputs ModulNotFoundError

Everything works find on python script when I run main.py it imports all dependencies without a problem.

When I run jupyter lab on ubuntu with WSL it seems like it doesn't bring dependencies with it, how can I fix it?? Weird thing is !pip freeze inside jupyter lab tells me I have all dependencies installed.

Thanks in advance!

EDIT: When I install package on jupyter lab it says Requirements already satisfied . Also this only happens when I spin up jupyter lab on virtual env. When I run on global environment it seems to work fine.

https://stackoverflow.com/questions/65916002/modulnotfounderror-even-though-pip-freeze-tells-you-it-is-downloaded-on-ubuntu January 27, 2021 at 05:12PM

没有评论:

发表评论