2

I can use numpy with built in python. But with python3.5 interpreter, it says

ImportError: No module named 'numpy'

but when I type $ sudo pip3 install numpy it says

"Requirement already satisfied: numpy in /root/.local/lib/python3.6/site-packages"

What should I do?

2
  • can you please precise your question you are trying your code in python3.5 and sitepackage location at python3.6?? Commented May 31, 2017 at 15:02
  • however if you still face problem then check if your python path is in system environment or not. Commented May 31, 2017 at 15:03

2 Answers 2

1

I had the similar problems before. When you run pip3, it actually linked to pip in your python3.6. Packages for different python distributions are in different folders. python3.5 -m pip install numpy should solve the problem.

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

Comments

0

Install module to python3.5 with pip3.5 install numpy or user python3.6 interpreter.

1 Comment

no distributions at all found for numpy

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.