# No module found named numba under Windows

**URL:** <https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304>\
**Category:** Support: What is this error message?\
**Created:** [November 29, 2023, 6:33am UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304 "2023-11-29T06:33:54Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 29, 2023, 6:33am UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/1 "2023-11-29T06:33:54Z")

</div>

“no module found named numba” under Windows 10 and 11 multiple computers. No spelling errors?, numba is installed, path is good. Numpy is installed in the same directory and works correctly. Works under Linux and MacOS. Python 3.11.5 and Numpy 1.23.4. on Windows. Python 3.9.2, Numpy 1.26.2 and.Numba 0.58.1 on Linux and Mac. Cannot determine numba version on Windows, but latest available to pip as of 28Nov23. I am completely stumped, and thank you~

---

<div class="post-metadata">

**Author:** ![esc](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/esc/32/49_2.png) [@esc](https://numba.discourse.group/u/esc)\
**Post date:** [November 29, 2023, 1:01pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/2 "2023-11-29T13:01:49Z")

</div>

Keep debugging, Numba will install and load on Windows fine, we test against it weekly. It is almost certainly something to do with your setup and the way it was installed. So sorry to not be able to offer anything more helpful.

---

<div class="post-metadata">

**Author:** ![esc](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/esc/32/49_2.png) [@esc](https://numba.discourse.group/u/esc)\
**Post date:** [November 29, 2023, 1:07pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/3 "2023-11-29T13:07:32Z")

</div>

Otherwise, if nothing helps, please list:

- How did you install Python?
- What package manager are you using?
- What version of Numba did you install?
- How are you trying to import Numba? (Script, Notebook, command-line)

---

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [November 29, 2023, 3:59pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/4 "2023-11-29T15:59:35Z")

</div>

What’s the difficulty in determining the numba version in windows? If it doesn’t show up in the output from ‘pip freeze’ then it’s probably not installed (assuming you’re using pip as your package manager)

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 29, 2023, 5:30pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/5 "2023-11-29T17:30:33Z")

</div>

I was unaware of pip freeze. I will try it right away. Thank you.

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 29, 2023, 8:06pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/6 "2023-11-29T20:06:57Z")

</div>

pip freeze returns llvmlite==0.41.1 numba==0.58.1 numpy==1.26.2

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 29, 2023, 8:09pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/7 "2023-11-29T20:09:30Z")

</div>

Installed python from python org. No package manager, just pip install numba. 0.41.1. Trying from both script and command line.

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 29, 2023, 8:10pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/8 "2023-11-29T20:10:37Z")

</div>

Sorry. Numba is version 0.58.1

---

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [November 29, 2023, 8:16pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/9 "2023-11-29T20:16:07Z")

</div>

what’s the output of `pip show numba` ? And what’s the path to the python exe you’re using to run the scripts where the import fails?

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 29, 2023, 9:12pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/10 "2023-11-29T21:12:12Z")

</div>

Not a Windows user, friends computer, so im a little show. pip show numba reports Name: numba, Version: 0.58.1, Summary: compiling Python code using LLVM, Home-page: [https://numba.pydata.org](https://numba.pydata.org), Author:, Author-email:, Liscense: BSD, Location: C:\Users\mike\AppData\Programs\Python\Python311\Lib\site-packages, Requires: llvmlite, numpy, Required-by:

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 29, 2023, 9:19pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/11 "2023-11-29T21:19:59Z")

</div>

The path is: C:\Users\mike\AppData\Local\Programs\Python\Python311\python.exe

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 29, 2023, 9:23pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/12 "2023-11-29T21:23:34Z")

</div>

Correction to pip show numba. I apologize. It’s C:\Users\mike\AppData\Local\Programs\Python\Python311\Lib\site-packages

---

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [November 29, 2023, 11:02pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/13 "2023-11-29T23:02:09Z")

</div>

> [@rgm](#):
>
> C:\Users\mike\AppData\Local\Programs\Python\Python311\python.ex

I’m a little confused… was the the original ‘pip show numba’ altered? Or is there some confusion about which pip, or which python install was used?

What do you get when you run this?  
`C:\Users\mike\AppData\Local\Programs\Python\Python311\python.exe -c "import numba;print(numba. __version__ )"`

and how about this?

`C:\Users\mike\AppData\Programs\Python\Python311\python.exe -c "import numba;print(numba. __version__ )"`

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 30, 2023, 1:49am UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/14 "2023-11-30T01:49:50Z")

</div>

Hi, the first pip show numba produced the second output. I typed it in wrong originally. In the two commands you gave me, the first produced 0.58.1, and second produced The system cannot find the path specified.

---

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [November 30, 2023, 2:12am UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/15 "2023-11-30T02:12:53Z")

</div>

It’s less error-prone to copy-paste the output verbatim instead of manually typing it in.

Based on your response, it seems that numba is installed since you ran a script and imported it successfully.

Do you feel like the problem is solved? What happens when you run your failing scripts using `C:\Users\mike\AppData\Local\Programs\Python\Python311\python.exe` as the interpreter?

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 30, 2023, 2:34am UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/16 "2023-11-30T02:34:49Z")

</div>

It doesn’t work yet. If I write a simple script, I still receive, no module found numba. I have tried various IDE’s and command line, with two surface pro’s, one on Windows 10, the other on 11.

---

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [November 30, 2023, 3:11am UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/17 "2023-11-30T03:11:18Z")

</div>

Can you supply your simple script and command line?

---

<div class="post-metadata">

**Author:** ![rgm](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rgm](https://numba.discourse.group/u/rgm)\
**Post date:** [November 30, 2023, 3:35am UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/18 "2023-11-30T03:35:44Z")

</div>

My script:

import numpy  
print(numpy.version.version)  
import pygame  
import numba

The error is no module named “numba”

---

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [November 30, 2023, 1:48pm UTC](https://numba.discourse.group/t/no-module-found-named-numba-under-windows/2304/19 "2023-11-30T13:48:43Z")

</div>

What’s the command line? Are you using the complete path to python.exe that imported numba previously?
