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
0
python -m pip list
?