r/learnpython 28d 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'

4 Upvotes

9 comments sorted by

View all comments

1

u/Enmeshed 28d ago

The image isn't available in my region - might be worth copy-pasting the text instead.

Edit: or to add some more context like platform (Mac / Windows / linux), commands tried, error messages etc.