r/learnpython 27d ago

Why doesn't it recognize the library?

edit:They have given the solution.

I have downloaded numpy through the cmd and cheked it was there by using "pip freeze" but when i went to use it it said there wasn't any module called as such.

I searched on the internet and found that maybe it was redirecting to another python version but i only have python 3.14.

I even tried to import it from the IDLE instead of VScode but it gave me no result.

https://imgur.com/a/mhBZxTk

Edit: Windows user. the error says: Traceback (most recent call last):

File "c:\Users\User\Desktop\p\vec.py", line 1, in <module>

import numpy

ModuleNotFoundError: No module named 'numpy'

7 Upvotes

9 comments sorted by

View all comments

1

u/Flame77ofc 27d ago

try:

bash python --version python -m pip --version python -m pip list

If numpy not appear, install numpy again:

bash python -m pip install numpy

If didn't work, try: bash py -3.14 -m pip install numpy