Can't import python library
0
pip list
Package    Version
---------- -------
numpy      1.16.0 
pip        19.0   
scipy      1.2.0  
setuptools 20.7.0 
wheel      0.29.0 
root@4c3f6bda574c:~# python 
Python 2.7.14 (default, Jan 22 2019, 21:16:55) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named scipy
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> import sys
>>> exit() . 
root@4c3f6bda574c:~# echo $PYTHONPATH
/usr/local/lib/python2.7/dist-packages . 
root@4c3f6bda574c:~# cd /usr/local/lib/python2.7/dist-packages . 
root@4c3f6bda574c:/usr/local/lib/python2.7/dist-packages# ls -la
total 44
drwxrwsr-x  8 root staff   128 Jan 22 22:33 .
drwxr-xr-x 29 root root  20480 Jan 22 22:07 ..
drwxr-sr-x 17 root staff  4096 Jan 22 22:08 numpy
drwxr-sr-x  2 root staff   111 Jan 22 22:08 numpy-1.16.0.dist-info
drwxr-sr-x  4 root staff   116 Jan 22 22:33 pip
 drwxr-sr-x  2 root staff   130 Jan 22 22:33 pip-19.0.dist-info
drwxr-sr-x 21 root staff  4096 Jan 22 22:08 scipy
drwxr-sr-x  2 root staff    87 Jan 22 22:08 scipy-1.2.0.dist-info
linux ubuntu bash python
add a comment |
0
pip list
Package    Version
---------- -------
numpy      1.16.0 
pip        19.0   
scipy      1.2.0  
setuptools 20.7.0 
wheel      0.29.0 
root@4c3f6bda574c:~# python 
Python 2.7.14 (default, Jan 22 2019, 21:16:55) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named scipy
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> import sys
>>> exit() . 
root@4c3f6bda574c:~# echo $PYTHONPATH
/usr/local/lib/python2.7/dist-packages . 
root@4c3f6bda574c:~# cd /usr/local/lib/python2.7/dist-packages . 
root@4c3f6bda574c:/usr/local/lib/python2.7/dist-packages# ls -la
total 44
drwxrwsr-x  8 root staff   128 Jan 22 22:33 .
drwxr-xr-x 29 root root  20480 Jan 22 22:07 ..
drwxr-sr-x 17 root staff  4096 Jan 22 22:08 numpy
drwxr-sr-x  2 root staff   111 Jan 22 22:08 numpy-1.16.0.dist-info
drwxr-sr-x  4 root staff   116 Jan 22 22:33 pip
 drwxr-sr-x  2 root staff   130 Jan 22 22:33 pip-19.0.dist-info
drwxr-sr-x 21 root staff  4096 Jan 22 22:08 scipy
drwxr-sr-x  2 root staff    87 Jan 22 22:08 scipy-1.2.0.dist-info
linux ubuntu bash python
 
 
 
 
 
 
 
 - python -m pip list?
 
 – Anaksunaman
 Jan 23 at 0:40
 
 
 
 
 
add a comment |
0
0
0
pip list
Package    Version
---------- -------
numpy      1.16.0 
pip        19.0   
scipy      1.2.0  
setuptools 20.7.0 
wheel      0.29.0 
root@4c3f6bda574c:~# python 
Python 2.7.14 (default, Jan 22 2019, 21:16:55) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named scipy
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> import sys
>>> exit() . 
root@4c3f6bda574c:~# echo $PYTHONPATH
/usr/local/lib/python2.7/dist-packages . 
root@4c3f6bda574c:~# cd /usr/local/lib/python2.7/dist-packages . 
root@4c3f6bda574c:/usr/local/lib/python2.7/dist-packages# ls -la
total 44
drwxrwsr-x  8 root staff   128 Jan 22 22:33 .
drwxr-xr-x 29 root root  20480 Jan 22 22:07 ..
drwxr-sr-x 17 root staff  4096 Jan 22 22:08 numpy
drwxr-sr-x  2 root staff   111 Jan 22 22:08 numpy-1.16.0.dist-info
drwxr-sr-x  4 root staff   116 Jan 22 22:33 pip
 drwxr-sr-x  2 root staff   130 Jan 22 22:33 pip-19.0.dist-info
drwxr-sr-x 21 root staff  4096 Jan 22 22:08 scipy
drwxr-sr-x  2 root staff    87 Jan 22 22:08 scipy-1.2.0.dist-info
linux ubuntu bash python
pip list
Package    Version
---------- -------
numpy      1.16.0 
pip        19.0   
scipy      1.2.0  
setuptools 20.7.0 
wheel      0.29.0 
root@4c3f6bda574c:~# python 
Python 2.7.14 (default, Jan 22 2019, 21:16:55) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named scipy
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy
>>> import sys
>>> exit() . 
root@4c3f6bda574c:~# echo $PYTHONPATH
/usr/local/lib/python2.7/dist-packages . 
root@4c3f6bda574c:~# cd /usr/local/lib/python2.7/dist-packages . 
root@4c3f6bda574c:/usr/local/lib/python2.7/dist-packages# ls -la
total 44
drwxrwsr-x  8 root staff   128 Jan 22 22:33 .
drwxr-xr-x 29 root root  20480 Jan 22 22:07 ..
drwxr-sr-x 17 root staff  4096 Jan 22 22:08 numpy
drwxr-sr-x  2 root staff   111 Jan 22 22:08 numpy-1.16.0.dist-info
drwxr-sr-x  4 root staff   116 Jan 22 22:33 pip
 drwxr-sr-x  2 root staff   130 Jan 22 22:33 pip-19.0.dist-info
drwxr-sr-x 21 root staff  4096 Jan 22 22:08 scipy
drwxr-sr-x  2 root staff    87 Jan 22 22:08 scipy-1.2.0.dist-info
linux ubuntu bash python
linux ubuntu bash python
edited Jan 22 at 23:04
Mokubai♦
57.7k16138156
57.7k16138156
asked Jan 22 at 22:44
user2945234user2945234
1
1
 
 
 
 
 
 
 
 - python -m pip list?
 
 – Anaksunaman
 Jan 23 at 0:40
 
 
 
 
 
add a comment |
 
 
 
 
 
 
 
 - python -m pip list?
 
 – Anaksunaman
 Jan 23 at 0:40
 
 
 
 
 
python -m pip list?– Anaksunaman
Jan 23 at 0:40
python -m pip list?– Anaksunaman
Jan 23 at 0:40
add a comment |
                            0
                        
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397202%2fcant-import-python-library%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
                            0
                        
active
oldest
votes
                            0
                        
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397202%2fcant-import-python-library%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
python -m pip list?– Anaksunaman
Jan 23 at 0:40