Ubuntu系统下为Python安装Scipy模块
来源:互联网 发布:程序员学英语有用吗? 编辑:程序博客网 时间:2024/05/16 10:47
本文摘自Scipy官网:
对于大多数用户,尤其是Window用户而言,最简单的安装Scipy的方式是安装打包装好的Python版本,例如:Anaconda, Enthought Canopy, Python(x, y), WinPython, Pyzo等。这些版本的Python中都已经打包好了常用的科学计算模块。
如果用户使用的是原生的Python,默认并没有包含Scipy模块。另行安装时,推荐用已经编译好的Scipy包。当然如果你特别精通编译源码,可以选择从GitHub上下载源码,自行编译后安装。
通过pip安装Scipy
由于pip对Window支持的不够,所以本方式针对Mac和Linux系统。第一步:升级pip到最新版本:
python -m pip install --upgrade pip
第二步:安装Scipy,建议在命令行上加上 --user 标识,此时安装仅仅针对当前用户,无需往系统目录内添加东西。
pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose第三步:设置环境变量,举例:
# linux# Consider adding this at the end of your ~/.bashrc fileexport PATH="$PATH:/home/your_user/.local/bin"将your_user替换为你的用户名
通过Linux包管理安装(Ubuntu & Debian)
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
通过Scipy版本和安装路径
# 版本python -c "import scipy; print scipy.version.version"
# 路径python -c "import scipy; print scipy.__file__"
阅读全文
0 0
- Ubuntu系统下为Python安装Scipy模块
- 在ubuntu下安装python的numpy和scipy模块
- Ubuntu环境下完美安装python模块numpy,scipy,matplotlib
- windows系统64位python下安装scipy模块
- ubuntu下安装python scipy
- ubuntu 下 python numpy,scipy,matplotlib安装
- ubuntu下安装python numpy matplot scipy
- 如何在Linux系统Ubuntu版本下安装Python开发包NumPy、Matplotlib、SciPy
- python 安装 numpy,scipy模块
- Python numpy scipy模块安装
- windows下python安装Numpy和Scipy模块
- windows下python安装Numpy和Scipy模块
- windows下python安装Numpy、Scipy、matplotlib模块
- windows下python安装Numpy、Scipy、matplotlib模块
- windows下python安装Numpy和Scipy模块
- Windows下Python安装NumPy、Scipy、matplotlib模块
- windows下python安装Numpy、Scipy、matplotlib模块
- windows下python安装Numpy、Scipy、matplotlib模块
- python3 pip常用命令
- cs本科可做的事
- LeetCode-383. Ransom Note (Java)
- Android Studio极光推送配置
- MFC子线程中更新控件内容的两种办法
- Ubuntu系统下为Python安装Scipy模块
- vi配置
- 前序遍历、中序遍历恢复二叉树
- sourceInsight4 破解笔记
- HTTP协议与AJP协议
- GDAL中新手常犯的error LNK2019: 无法解析的外部符号的错误
- vue.js 中的在v-for节点中嵌入 v-if 的解释
- ssh 删除文件夹 命令
- 操作系统概念(高等教育出版社,第七版)复习——第八章:内存管理