# Python modules not found in LabPlot

**URL:** <https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229>\
**Category:** Help\
**Tags:** labplot\
**Created:** [March 30, 2025, 10:10am UTC](https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229 "2025-03-30T10:10:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![J-Cake](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/j-cake/32/20046_2.png) [@J-Cake](https://discuss.kde.org/u/J-Cake)\
**Post date:** [March 30, 2025, 10:10am UTC](https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229/1 "2025-03-30T10:10:06Z")

</div>

I installed LapPlot, and want to use Python for a project. Unfortunately, the python CAS worksheet doesn’t let me import modules.

```python3
>>> import numpy as np

ModuleNotFoundError: No module named 'numpy'

```

I installed the packages via `pacman` and running it from the terminal works:

```auto
sudo pacman -Sy python-numpy python-scipy python-pandas python-matplotlib

python3
>>> import numpy as np
>>>

```

Why isn’t LapPlot pickin up these modules?

---

<div class="post-metadata">

**Author:** ![asemke](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/asemke/32/22289_2.png) [@asemke](https://discuss.kde.org/u/asemke)\
**Post date:** [April 3, 2025, 2:36pm UTC](https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229/2 "2025-04-03T14:36:38Z")

</div>

probably multiple version of Python are installed on your system and you installed the modules now not for the version that is being used by LabPlot.

Which path of the executable do you see once you created a python notebook in labplot? What is the output of

import sys  
print(sys.executable)

---

<div class="post-metadata">

**Author:** ![J-Cake](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/j-cake/32/20046_2.png) [@J-Cake](https://discuss.kde.org/u/J-Cake)\
**Post date:** [April 3, 2025, 5:57pm UTC](https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229/3 "2025-04-03T17:57:27Z")

</div>

hi, thanks for your reply.

My system is a fresh install of Arch. I insalled the packages via pacman. LabPlot reports `/usr/bin/python3`

---

<div class="post-metadata">

**Author:** ![asemke](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/asemke/32/22289_2.png) [@asemke](https://discuss.kde.org/u/asemke)\
**Post date:** [April 4, 2025, 5:05pm UTC](https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229/4 "2025-04-04T17:05:32Z")

</div>

which path do you get when you start python3 in your terminal and print out sys.executable?

---

<div class="post-metadata">

**Author:** ![asemke](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/asemke/32/22289_2.png) [@asemke](https://discuss.kde.org/u/asemke)\
**Post date:** [April 18, 2025, 7:45am UTC](https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229/5 "2025-04-18T07:45:16Z")

</div>

@J-Cake did you have a chance to check it once more?

---

<div class="post-metadata">

**Author:** ![DLDietrich](https://discuss-cdn.kde.org/letter_avatar_proxy/v4/letter/d/ea5d25/32.png) [@DLDietrich](https://discuss.kde.org/u/DLDietrich)\
**Post date:** [May 19, 2025, 8:15pm UTC](https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229/6 "2025-05-19T20:15:54Z")

</div>

Hi, in doing the search I have the same problem. I followed your directions and on a Mac I get this when I type in a Jupyter Notebook (/opt/anaconda3/bin/python) and this when I do the same in LabPlot (/Applications/LabPlot.app/Contents/MacOS/cantor\_pythonserver). So it looks like that is the problem. Recommendations on how to get LabPlot to ‘see’ the other Python distribution. Apologies if it’s a dumb question. I trying to come up to speed with Python as a Data Analysis engine with LabPlot for polished graphs.

---

<div class="post-metadata">

**Author:** ![J-Cake](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/j-cake/32/20046_2.png) [@J-Cake](https://discuss.kde.org/u/J-Cake)\
**Post date:** [May 20, 2025, 12:15pm UTC](https://discuss.kde.org/t/python-modules-not-found-in-labplot/32229/7 "2025-05-20T12:15:19Z")

</div>

Hi sorry for not getting back to you. unfortunately I haven’t been able to test it again. I’ll remember to post here when I do
