Ubuntu 16.04 : Can't seem to make numpy work in python 3.6.5 but it works fine in python 2.7.12

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












when I run import numypy in python 3 , the following appears :
ModuleNotFoundError: No module named 'numpy'



So you might say try pip3 install numpy
But it is already installed which is confirmed when I run pip3 install numpy it shows:



Requirement already satisfied: numpy in /home/shreyash/.local/lib/python3.5/site-packages (1.14.3)



I did try
python3 -m pip install numpy
but it says :
No module named pip



additinal info: i use pip version 10.0.1 check the terminal screenshot :-(



related question :
Can't uninstall Python 3.6



I'm unable to make my code run in neither of python2.7 , python3.5 , python 3.6.

numpy works fine with version 2.7 but then it encounters the same problem for using matplotlib. I'm fine with whatever python version so long as I'm able to run my code. I would prefer version 3.x though.







share|improve this question


















  • 1




    Your extra 3.6 installation will have a different module folder than the built-in 3.5 version. You should be able to invoke the correct pip version using PYTHON -m pip install numpy, replacing PYTHON with the command for your interpreter, e.g. python3.
    – Byte Commander
    May 13 at 19:40










  • what is numpy-stl available in apt? would that fix it?
    – Joshua Besneatte
    May 13 at 19:42










  • @Byte Commander I did try that but it says : No module named pip
    – SHREYASH ANARASE
    May 13 at 19:48







  • 1




    You could surely remove your extra 3.6 Python installation, but make sure you do not accidentally remove the system's Python 3.5 - that would give you huge trouble.
    – Byte Commander
    May 13 at 21:59






  • 1




    How did you even install 3.6 in the first place? If it wasn't installed with apt, it can't be removed that way either.
    – Byte Commander
    May 14 at 8:34














up vote
0
down vote

favorite












when I run import numypy in python 3 , the following appears :
ModuleNotFoundError: No module named 'numpy'



So you might say try pip3 install numpy
But it is already installed which is confirmed when I run pip3 install numpy it shows:



Requirement already satisfied: numpy in /home/shreyash/.local/lib/python3.5/site-packages (1.14.3)



I did try
python3 -m pip install numpy
but it says :
No module named pip



additinal info: i use pip version 10.0.1 check the terminal screenshot :-(



related question :
Can't uninstall Python 3.6



I'm unable to make my code run in neither of python2.7 , python3.5 , python 3.6.

numpy works fine with version 2.7 but then it encounters the same problem for using matplotlib. I'm fine with whatever python version so long as I'm able to run my code. I would prefer version 3.x though.







share|improve this question


















  • 1




    Your extra 3.6 installation will have a different module folder than the built-in 3.5 version. You should be able to invoke the correct pip version using PYTHON -m pip install numpy, replacing PYTHON with the command for your interpreter, e.g. python3.
    – Byte Commander
    May 13 at 19:40










  • what is numpy-stl available in apt? would that fix it?
    – Joshua Besneatte
    May 13 at 19:42










  • @Byte Commander I did try that but it says : No module named pip
    – SHREYASH ANARASE
    May 13 at 19:48







  • 1




    You could surely remove your extra 3.6 Python installation, but make sure you do not accidentally remove the system's Python 3.5 - that would give you huge trouble.
    – Byte Commander
    May 13 at 21:59






  • 1




    How did you even install 3.6 in the first place? If it wasn't installed with apt, it can't be removed that way either.
    – Byte Commander
    May 14 at 8:34












up vote
0
down vote

favorite









up vote
0
down vote

favorite











when I run import numypy in python 3 , the following appears :
ModuleNotFoundError: No module named 'numpy'



So you might say try pip3 install numpy
But it is already installed which is confirmed when I run pip3 install numpy it shows:



Requirement already satisfied: numpy in /home/shreyash/.local/lib/python3.5/site-packages (1.14.3)



I did try
python3 -m pip install numpy
but it says :
No module named pip



additinal info: i use pip version 10.0.1 check the terminal screenshot :-(



related question :
Can't uninstall Python 3.6



I'm unable to make my code run in neither of python2.7 , python3.5 , python 3.6.

numpy works fine with version 2.7 but then it encounters the same problem for using matplotlib. I'm fine with whatever python version so long as I'm able to run my code. I would prefer version 3.x though.







share|improve this question














when I run import numypy in python 3 , the following appears :
ModuleNotFoundError: No module named 'numpy'



So you might say try pip3 install numpy
But it is already installed which is confirmed when I run pip3 install numpy it shows:



Requirement already satisfied: numpy in /home/shreyash/.local/lib/python3.5/site-packages (1.14.3)



I did try
python3 -m pip install numpy
but it says :
No module named pip



additinal info: i use pip version 10.0.1 check the terminal screenshot :-(



related question :
Can't uninstall Python 3.6



I'm unable to make my code run in neither of python2.7 , python3.5 , python 3.6.

numpy works fine with version 2.7 but then it encounters the same problem for using matplotlib. I'm fine with whatever python version so long as I'm able to run my code. I would prefer version 3.x though.









share|improve this question













share|improve this question




share|improve this question








edited May 14 at 8:55

























asked May 13 at 19:32









SHREYASH ANARASE

164




164







  • 1




    Your extra 3.6 installation will have a different module folder than the built-in 3.5 version. You should be able to invoke the correct pip version using PYTHON -m pip install numpy, replacing PYTHON with the command for your interpreter, e.g. python3.
    – Byte Commander
    May 13 at 19:40










  • what is numpy-stl available in apt? would that fix it?
    – Joshua Besneatte
    May 13 at 19:42










  • @Byte Commander I did try that but it says : No module named pip
    – SHREYASH ANARASE
    May 13 at 19:48







  • 1




    You could surely remove your extra 3.6 Python installation, but make sure you do not accidentally remove the system's Python 3.5 - that would give you huge trouble.
    – Byte Commander
    May 13 at 21:59






  • 1




    How did you even install 3.6 in the first place? If it wasn't installed with apt, it can't be removed that way either.
    – Byte Commander
    May 14 at 8:34












  • 1




    Your extra 3.6 installation will have a different module folder than the built-in 3.5 version. You should be able to invoke the correct pip version using PYTHON -m pip install numpy, replacing PYTHON with the command for your interpreter, e.g. python3.
    – Byte Commander
    May 13 at 19:40










  • what is numpy-stl available in apt? would that fix it?
    – Joshua Besneatte
    May 13 at 19:42










  • @Byte Commander I did try that but it says : No module named pip
    – SHREYASH ANARASE
    May 13 at 19:48







  • 1




    You could surely remove your extra 3.6 Python installation, but make sure you do not accidentally remove the system's Python 3.5 - that would give you huge trouble.
    – Byte Commander
    May 13 at 21:59






  • 1




    How did you even install 3.6 in the first place? If it wasn't installed with apt, it can't be removed that way either.
    – Byte Commander
    May 14 at 8:34







1




1




Your extra 3.6 installation will have a different module folder than the built-in 3.5 version. You should be able to invoke the correct pip version using PYTHON -m pip install numpy, replacing PYTHON with the command for your interpreter, e.g. python3.
– Byte Commander
May 13 at 19:40




Your extra 3.6 installation will have a different module folder than the built-in 3.5 version. You should be able to invoke the correct pip version using PYTHON -m pip install numpy, replacing PYTHON with the command for your interpreter, e.g. python3.
– Byte Commander
May 13 at 19:40












what is numpy-stl available in apt? would that fix it?
– Joshua Besneatte
May 13 at 19:42




what is numpy-stl available in apt? would that fix it?
– Joshua Besneatte
May 13 at 19:42












@Byte Commander I did try that but it says : No module named pip
– SHREYASH ANARASE
May 13 at 19:48





@Byte Commander I did try that but it says : No module named pip
– SHREYASH ANARASE
May 13 at 19:48





1




1




You could surely remove your extra 3.6 Python installation, but make sure you do not accidentally remove the system's Python 3.5 - that would give you huge trouble.
– Byte Commander
May 13 at 21:59




You could surely remove your extra 3.6 Python installation, but make sure you do not accidentally remove the system's Python 3.5 - that would give you huge trouble.
– Byte Commander
May 13 at 21:59




1




1




How did you even install 3.6 in the first place? If it wasn't installed with apt, it can't be removed that way either.
– Byte Commander
May 14 at 8:34




How did you even install 3.6 in the first place? If it wasn't installed with apt, it can't be removed that way either.
– Byte Commander
May 14 at 8:34















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035826%2fubuntu-16-04-cant-seem-to-make-numpy-work-in-python-3-6-5-but-it-works-fine-i%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035826%2fubuntu-16-04-cant-seem-to-make-numpy-work-in-python-3-6-5-but-it-works-fine-i%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

`kcmshell` modules relation with `/usr/share/applications`

How to enroll fingerprints to Ubuntu 17.10 with VFS491