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


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.
python python3 pip numpy
 |Â
show 4 more comments
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.
python python3 pip numpy
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 correctpip
version usingPYTHON -m pip install numpy
, replacingPYTHON
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 withapt
, it can't be removed that way either.
â Byte Commander
May 14 at 8:34
 |Â
show 4 more comments
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.
python python3 pip numpy
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.
python python3 pip numpy
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 correctpip
version usingPYTHON -m pip install numpy
, replacingPYTHON
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 withapt
, it can't be removed that way either.
â Byte Commander
May 14 at 8:34
 |Â
show 4 more comments
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 correctpip
version usingPYTHON -m pip install numpy
, replacingPYTHON
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 withapt
, 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
 |Â
show 4 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 usingPYTHON -m pip install numpy
, replacingPYTHON
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