在mac安装numpy matplotlib scipy

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #afad24; background-color: #ffffff }
span.s1 { color: #d53bd3 }
span.s2 { color: #33bbc8 }
span.s3 { color: #afad24 }
span.s4 { color: #c33720 }
span.s5 { }
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #afad24; background-color: #ffffff }
span.s1 { color: #d53bd3 }
span.s2 { color: #33bbc8 }
span.s3 { color: #afad24 }
span.s4 { color: #c33720 }
span.s5 { }

安装homebrew

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

$ echo ‘export PATH="/usr/local/bin:$PATH"‘ >> ~/.bash_profile
$ brew doctor
安装matplotlib

lapomme@lapommedeMacBook-Pro:~|?  sudo pip3 install matplotlib

The directory ‘/Users/lapomme/Library/Caches/pip/http‘ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo‘s -H flag.

The directory ‘/Users/lapomme/Library/Caches/pip‘ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo‘s -H flag.

Collecting matplotlib

Downloading matplotlib-1.5.3-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (11.2MB)

100% |████████████████████████████████| 11.2MB 42kB/s

Collecting pyparsing!=2.0.0,!=2.0.4,!=2.1.2,>=1.5.6 (from matplotlib)

Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB)

100% |████████████████████████████████| 57kB 280kB/s

Collecting python-dateutil (from matplotlib)

Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB)

100% |████████████████████████████████| 196kB 297kB/s

Collecting cycler (from matplotlib)

Downloading cycler-0.10.0-py2.py3-none-any.whl

Collecting pytz (from matplotlib)

Downloading pytz-2016.7-py2.py3-none-any.whl (480kB)

100% |████████████████████████████████| 483kB 506kB/s

Collecting numpy>=1.6 (from matplotlib)

Downloading numpy-1.11.2-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.9MB)

100% |████████████████████████████████| 3.9MB 106kB/s

Collecting six>=1.5 (from python-dateutil->matplotlib)

Downloading six-1.10.0-py2.py3-none-any.whl

Installing collected packages: pyparsing, six, python-dateutil, cycler, pytz, numpy, matplotlib

Successfully installed cycler-0.10.0 matplotlib-1.5.3 numpy-1.11.2 pyparsing-2.1.10 python-dateutil-2.6.0 pytz-2016.7 six-1.10.0

You are using pip version 7.1.2, however version 9.0.1 is available.

You should consider upgrading via the ‘pip install --upgrade pip‘ command.

安装scipy

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #afad24; background-color: #ffffff }
span.s1 { color: #d53bd3 }
span.s2 { color: #33bbc8 }
span.s3 { color: #afad24 }
span.s4 { color: #c33720 }
span.s5 { }

lapomme@lapommedeMacBook-Pro:~|?  pip3 install scipy

Collecting scipy

Downloading scipy-0.18.1-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (21.0MB)

100% |████████████████████████████████| 21.0MB 24kB/s

Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.1 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from scipy)

Installing collected packages: scipy

Successfully installed scipy-0.18.1

You are using pip version 7.1.2, however version 9.0.1 is available.

You should consider upgrading via the ‘pip install --upgrade pip‘ command.

安装numpy

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #afad24; background-color: #ffffff }
span.s1 { color: #d53bd3 }
span.s2 { color: #33bbc8 }
span.s3 { color: #afad24 }
span.s4 { color: #c33720 }
span.s5 { }

lapomme@lapommedeMacBook-Pro:~|?  pip3 install numpy

Requirement already satisfied (use --upgrade to upgrade): numpy in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages

You are using pip version 7.1.2, however version 9.0.1 is available.

You should consider upgrading via the ‘pip install --upgrade pip‘ command.

时间: 2024-10-05 04:59:11

在mac安装numpy matplotlib scipy的相关文章

Centos7下安装numpy+matplotlib+scipy

摘自:http://litchiware.github.io/centos/2015/07/05/centos7%E4%B8%8B%E5%AE%89%E8%A3%85numpy+matplotlib+scipy/ 1.安装numpy 安装numpy的依赖包 sudo yum install gcc-gfortran sudo yum install blas-devel sudo yum install lapack-devel sudo yum install python-devel 安装n

centos 7 下安装numpy、scipy等python包

本文适用于刚入门的小白,欢迎大牛们批评指正. 因为要开始数据分析,而python又不像R和matlab那么简洁.需要安装的包很多~ 网上找了好多牛人博客,想在centos7下安装numpy,scipy等包,一开始就懵逼了,网上的指导帖很多,试了很多方法, 绕了很多弯路,总结一下经验~ ——————————————————————华丽分割线—————————————————————————— 最简单的方法: 命令行执行: sudo yum -y install gcc gcc-c++ numpy

python安装numpy、scipy和matplotlib等whl包的方法

最近装了python和PyCharm开发环境,但是在安装numpy和matplotlib等包时出现了问题,现总结一下在windows平台下的安装方法. 由于现在找不到了工具包新版本的exe文件,所以采用了whl格式文件的安装.本人事先安装了python3.5.2,电脑是32位. 1.先安装wheel,在cmd窗口下输入: pip install wheel 2.下载工具包: numpy模块:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy scip

机器学习实战之环境配置:windows系统下安装NumPy、SciPy和Matplotlib函数库

在科学和金融领域,SciPy和NumPy等科学函数库都实现了向量和矩阵操作,增加了代码的可读性,降低了阅读门槛:同时这两个库使用底层语言(C和Fortran)编写,提高了相关应用程序的计算性能,被广泛的应用.此外还有绘图工具Matplotlib,可以绘制2D/3D图形,也可以处理科学研究中经常使用到的图形. 三个库各自的下载地址↓ http://sourceforge.net/projects/numpy/files/NumPy http://sourceforge.net/projects/s

在windows中安装numpy,scipy和matplotlib

系统windows 7 64位 Python 2.7.10,本来装的是64位版,但是numpy和scipy没找到64位版本,下载了32位版,安装时候会提示python27 is not found in the regestry,所以把python改成了32位版再安装就好了. python27 32位版下载地址 https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi Numerical Python下载地址 http://cznic.

linux下安装numpy,pandas,scipy,matplotlib,scikit-learn

python在数据科学方面需要用到的库: a.Numpy:科学计算库.提供矩阵运算的库. b.Pandas:数据分析处理库 c.scipy:数值计算库.提供数值积分和常微分方程组求解算法.提供了一个非常广泛的特定函数集合. d.Matplotlib:数据可视化库 e.Scikit-learn:机器学习库 安装顺序如下: 1.pip install numpy2.pip install pandas 3.pip install scipy (sudo apt-get install libatla

centos6.4 下安装numpy、scipy、matplotlib

各个安装包版本: scipy-0.11.0 numpy-1.6.2 nose-1.2.1 lapack-3.4.2 ##atlas-3.10.0 (http://pkgs.fedoraproject.org/repo/pkgs/atlas/) 依赖关系:scipy的安装需要依赖于numpy.lapack.atlas(后两者都是线性代数工具包,不清楚的自行google之...),而numpy和sci的测试程序的运行又依赖于nose,因此,整个安装过程必须要按顺序执行的,否则是无法执行下去的. su

在virtualenv中安装NumPy、 SciPy、 scikit-learn、 matplotlib

首先要进入对应的虚拟环境 然后安装包 安装numpy包 pip install numpy -i https://pypi.douban.com/simple 安装scipy pip install scipy -i https://pypi.douban.com/simple 安装scikit-learn pip install scikit-learn -i https://pypi.douban.com/simple 安装matplotlib pip install matplotlib

CentOS 6.5下安装NumPy、SciPy、Scikit-Learn

一.更新python版本 1. 查看python版本 [[email protected] ipython-5.1.0]# python -V Python 2.6.6 2. 下载python-2.7.3 https://www.python.org/download/releases/2.7.3/ Python-2.7.3.tar.bz2 3. 解压缩并更改工作目录 tar -jxvf Python-2.7.3.tar.bz2 cd Python-2.7.3 4. 安装 ./configure