python:安装numpy, Scipy,Matplotlib
来源:互联网 发布:中国保险网络大学注册 编辑:程序博客网 时间:2024/04/30 14:28
一 安装python
(1)下载python3.4.3
(2)安装python3.4.3
(3)配置环境变量
二安装numpy
(1)下载numpy
(2) 解压缩, 我解压文件存放在:
(3)切换到numpy-1.9.2目录下,使用 gfortran进行编译在(可以使用):
python setup.py build --fcompiler=gnu95Note:具体使用什么编译器,是自己的电脑配置而定(有的是--fcompiler=gnu), 可以查看。
(4) 然后安装(install)
python setup.py install [--prefix=/some/custom/installation/prefix]后面的--prefix没有指定的话,默认为安装在Python的安装路径下。 否的, 你指定的话,此时你还要做另一家是就是配置你这个numpy的环境变量。以便python可以找到它。
这里我选择的是没有指定。
关掉terminal, 重新打开terminal, 检验是否安装正确。
三 安装scipy
下载exe文件
http://sourceforge.net/projects/scipy/
安装完成后,打开terminal,验证是否安装成功:
四 安装matplotlib
下载exe文件(我的电脑是32位的,选择32位的版本下载):
http://matplotlib.org/downloads.html
我选择的是:matplotlib-1.4.3.win32-py3.4.exe
直接点击该exe运行即可。
在Import的时候出现如下错误no module named six:
所以我们需要安装six 这个module。
其中pip位于目录C:\Python34\Scripts里面。 切换到下面:
然后在终端执行如下命令:
这样我们成功的安装了six模块。
重新调用python解释器, 导入matplotlib试试:
发现缺少模块dateutil模块。 继续安装这个模块。
网上搜了一下,如下指令:
然后继续调用python解释器,运行, 发现出现如下错误:
然后, 需要安装pyparsing指令如下(目录C:\Python34\Scripts里面有命令easy_install命令):
最终如愿安装上matplotlib了:
最后祭上matplotlib的founder, 已逝的John Hunter :
- python:安装numpy, Scipy,Matplotlib
- ubuntu 下 python numpy,scipy,matplotlib安装
- python scipy numpy matplotlib傻瓜式安装
- 安装配置Python+Numpy+Scipy+Matplotlib环境
- Python: Ubuntu 安装numpy,scipy,matplotlib
- python下安装numpy、matplotlib、scipy过程
- Python安装Numpy,SciPy和MatplotLib
- python 安装numpy,scipy,matplotlib算法库
- Python 之 安装 scipy,numpy,matplotlib,pandas
- windows下python,numpy,scipy,matplotlib安装
- Python中的Numpy、SciPy、MatPlotLib安装教程
- Python:Ubuntu安装numpy,scipy,matplotlib
- python如何安装Numpy、SciPy、MatPlotLib
- python安装numpy/scipy/matplotlib/sklearn模块
- Python: Ubuntu 安装numpy,scipy,matplotlib
- 在python中安装Numpy、MatPlotLib、SciPy
- Python 下载并安装numpy matplotlib scipy
- python(numpy scipy matplotlib sklearn)安装
- vc++6.0 字节运算
- 深入理解Zend SAPIs(Zend SAPI Internals)
- python如何连接mysql数据库
- const介绍
- Android游戏开发之数独课时----1
- python:安装numpy, Scipy,Matplotlib
- PINBLOCK计算方法
- 8.2.1.3 Range Optimization 范围优化
- Spring 和EJB终于统一融合(转)
- Qt 元对象系统 一
- 实现PHP的编译执行分离(separatingcompilation and execution)
- angular 封装 Jquery插件时作用域问题
- HDU 1038.Biker's Trip Odometer【单位换算】【水水水】【8月24】
- PHP的单引号和双引号