1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > Linux 系统中 SciPy (Python 3) 编程环境

Linux 系统中 SciPy (Python 3) 编程环境

时间:2019-05-22 19:31:23

相关推荐

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.jsonTraceback (most recent call last):File "people_counting_api.py", line 21, in <module>import pyevent.deep_sort_server as eventFile "/home/guipc/people_counting_api/pyevent/deep_sort_server.py", line 8, in <module>from lib.deep_sort.tracker import TrackerFile "/home/guipc/people_counting_api/pyevent/lib/deep_sort/tracker.py", line 4, in <module>from . import kalman_filterFile "/home/guipc/people_counting_api/pyevent/lib/deep_sort/kalman_filter.py", line 3, in <module>import scipy.linalgImportError: No module named 'scipy'

2. Installation

sudo pip3 install scipysudo 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 scipyDownloading /packages/7a/0e/3781e028d62a8422244582abd8f084e6314297026760587c85607f687bf3/scipy-1.3.1-cp35-cp35m-manylinux1_x86_64.whl (25100% |████████████████████████████████| 25.1MB 61kB/sRequirement already satisfied (use --upgrade to upgrade): numpy>=1.13.3 in /usr/local/lib/python3.5/dist-packages (from scipy)Installing collected packages: scipySuccessfully installed scipy-1.3.1You 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:~$ python3Python 3.5.2 (default, Nov 12 , 13:43:14)[GCC 5.4.0 0609] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import scipy>>> print(scipy.version)<module 'scipy.version' from '/usr/local/lib/python3.5/dist-packages/scipy/version.py'>>>>>>> print(scipy.version.version)1.3.1>>>>>> exit()guipc@deepnorth01:~$

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。