zoukankan      html  css  js  c++  java
  • OS X(10.10) python3.4 matplotlib的安装

    最近在用python做一些数据处理相关的工作,当然少不了matplotlib这个模块。之前在windows下分分钟安装成功,结果到了mac下死活编译不过去。

    最后还是在stackoverflow上找到了答案。

    原因是因为安装matplotlib时有一些依赖的第三方的库,而这些库在os x 下默认是没有安装的,这些库包括:pkg-config,freetype

    所以把这两个库安装后,就可以成功的安装matplotlib了

    安装pkg-config 和freetype时,可以使用brew工具来安装。

    >>brew install pkg-config

    >>brew install freetype

    (前提是安装了brew...)

    之后就可以安装matplotlib了

    >>pip install matplotlib(pip3 install matplotlib 如果是python3的话)

  • 相关阅读:
    type() & dir()

    手机操作API
    APP模拟手势高级操作
    APP元素事件操作API
    APP元素信息操作API
    APP元素定位操作
    手机控件查看工具uiautomatorviewer
    App基础操作API
    Appium入门
  • 原文地址:https://www.cnblogs.com/suneony/p/4507695.html
Copyright © 2011-2022 走看看