# Unable to import numpy and other packages after Ubuntu upgrade

**URL:** <https://discourse.jupyter.org/t/unable-to-import-numpy-and-other-packages-after-ubuntu-upgrade/25392>\
**Category:** JupyterLab\
**Tags:** jupyterlab, help-wanted\
**Created:** [April 27, 2024, 7:44pm UTC](https://discourse.jupyter.org/t/unable-to-import-numpy-and-other-packages-after-ubuntu-upgrade/25392 "2024-04-27T19:44:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![UriBarkan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/uribarkan/32/13213_2.png) [@UriBarkan](https://discourse.jupyter.org/u/UriBarkan)\
**Post date:** [April 27, 2024, 7:44pm UTC](https://discourse.jupyter.org/t/unable-to-import-numpy-and-other-packages-after-ubuntu-upgrade/25392/1 "2024-04-27T19:44:32Z")

</div>

Hi,

I upgraded to Ubuntu 24.04 yesterday. After the upgrade, when trying to import numpy (for example) in JupyterLab, I get the following message:  
`ModuleNotFoundError: No module named 'numpy'`

When I run python from terminal or when I try importing the same package on Jupyter notebook, import is successful. Also, if I open terminal within jupyter-lab (from the launcher) import is also successful. So import fails only from notebooks (tried from different notebooks).

Tried to reinstall jupyter-lab (“pipx reinstall jupyterlab”), to no avail.

Any ideas? Thanks.
