Yosemite‎ 下升级 Python3.4 安装 numpy以及matplotlib

由于新的项目需要python3.4,而Yosemite‎ 下的python 版本只有2.7。而网上安装python3.4 ,numpy 的方法不好用,且写一篇随笔记录。

1.去https://www.python.org/downloads/   下载python3.4,安装

2.http://jingyan.baidu.com/article/27fa7326e4809646f8271fc7.html 按照步骤完成python升级

3.在命令行中运行

  curl bootstrap.pypa.io/get-pip.py | python3.4

  pip3 install numpy

如此python3.4 以及numpy就安装完成了

接下来安装matplotlib,去http://matplotlib.org/downloads.html下载

命令行输入

pip3 install matplotlib-1.4.3-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

这样就做完了

posted @ 2015-08-02 15:09  一勺水  阅读(191)  评论(0编辑  收藏  举报