Linux 系统中 SciPy (Python 3) 编程环境
SciPy (pronounced “Sigh Pie”) is a Python-based ecosystem of open-source software for mathematics, science, and engineering.
SciPy (Sigh Pie) 是一个基于 Python 的数学、科学和工程开源软件生态系统。
1. ImportError: No module named ‘scipy’
guipc@deepnorth01:~/people_counting_api$ python3 people_counting_api.py -input_file ./config_file/setup_2.json
Traceback (most recent call last):
File "people_counting_api.py", line 21, in import pyevent.deep_sort_server as event
File "/home/guipc/people_counting_api/pyevent/deep_sort_server.py", line 8, in from lib.deep_sort.tracker import Tracker
File "/home/guipc/people_counting_api/pyevent/lib/deep_sort/tracker.py", line 4, in from . import kalman_filter
File "/home/guipc/people_counting_api/pyevent/lib/deep_sort/kalman_filter.py", line 3, in import scipy.linalg
ImportError: No module named 'scipy'
2. Installation
sudo pip3 install scipy
sudo pip3 install -i /simple scipy
guipc@deepnorth01:~/people_counting_api$ sudo pip3 install -i /simple scipy
[sudo] password for guipc:
The directory '/home/guipc/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions ar of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/guipc/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owneat directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting scipy
Downloading /packages/7a/0e/3781e028d62a8422244582abd8f084e6314297026760587c85607f687bf3/scipy-1.3.1-cp35-cp35m-manylinux1_x86_64.whl (25
100% |████████████████████████████████| 25.1MB 61kB/s
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.13.3 in /usr/local/lib/python3.5/dist-packages (from scipy)
Installing collected packages: scipy
Successfully installed scipy-1.3.1
You are using pip version 8.1.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
guipc@deepnorth01:~/people_counting_api$
3. SciPy 版本
guipc@deepnorth01:~$ python3
Python 3.5.2 (default, Nov 12 , 13:43:14)
[GCC 5.4.0 0609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> print(scipy.version)
>>>
>>> print(scipy.version.version)
1.3.1
>>>
>>> exit()
guipc@deepnorth01:~$