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:~$

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值