linux 版本的scipy,Linux 系统中 SciPy (Python 3) 编程环境
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 https://pypi.douban.com/simple scipy
guipc@deepnorth01:~/people_counting_api$ sudo pip3 install -i https://pypi.douban.com/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 https://pypi.doubanio.com/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 2018, 13:43:14)
[GCC 5.4.0 20160609] 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:~$
總結
以上是生活随笔為你收集整理的linux 版本的scipy,Linux 系统中 SciPy (Python 3) 编程环境的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 酷狗音乐有访客记录吗
- 下一篇: 不愿意被PUA遭裁员?腾讯T13技术专家