pythonnumpyvisual-studio-code

Can't access Numpy


I'm trying to run a code on VSCodium (new to Python) but it says that numpy module is not found, but when trying to install it says the requirement is already satisfied! I read multiple threads about this and could not get anything to solve this issue! I have been trying to fix this for multiple hours now so any help/tips is very appreciated!

enter image description here


Solution

  • If you look in the bottom right of your IDE (VSCodium) you can see that the code is running in 3.9.6, but your terminal call is using python 3.12 from a conda environment.

    If you want to use the conda env, you can change that in the bottom right (click where it says python 3.9.6) and selecting the env that you want, ideally the one that matches your terminal call.

    you can verify that you are in the right python by typing: python --version