SciPy 安装

章节


SciPy 安装

确保已经安装pip

最佳实践是,一起安装NumPy, Scipy, matplotlib等系列包。

执行以下命令安装:

python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose

注意 :官方推荐使用用户安装,使用--user标志执行pip(警告:不要使用sudo pip,这可能会导致问题)。这将为当前用户安装包,不写入系统目录。

验证安装

要验证安装,可通过尝试导入模块scipy,如下所示。如果没有报错,则安装成功。

[root@qikegu py3]# python
Python 3.7.3 (default, Jun 17 2019, 22:07:41)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>>
posted @ 2019-11-05 11:35  吴吃辣  阅读(1365)  评论(0编辑  收藏  举报