0

I am trying to write a simple program that uses the numpy module. I have downloaded it without the use of a virtual environment using pip. On doing a pip freeze all the modules are present yet I am unable to import it when I use the command prompt python terminal. I found a few answers related to the environment variables but I can't work my way around it.

Here is the pip freeze modules

Here is the no module error

3
  • Type in cosole where pip and where python then compare path to both apps. Commented Jul 20, 2020 at 18:29
  • please, post text as text! Commented Jul 20, 2020 at 18:31
  • Where python gave me three paths. where python: C:\Program Files\Python\Python37\python.exe C:\Users\shaurya\AppData\Local\Programs\Python\Python38\python.exe C:\Users\shaurya\AppData\Local\Microsoft\WindowsApps\python.exe where pip : C:\Users\shaurya\AppData\Local\Programs\Python\Python38\Scripts\pip.exe Commented Jul 20, 2020 at 18:32

1 Answer 1

2

That can be caused by multiple python versions installed in your system. So try:

python -m pip list

and if it does not list numpy, try installing it using:

python -m pip install numpy

In some cases, py works the same as python, so try all above things with py as well, including your own attempts

Sign up to request clarification or add additional context in comments.

2 Comments

I needed admin permissions to install numpy but it worked just fine.
nice then! Edited the post, also check it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.