ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Python - Matplotlib and Numpy on Debian/Ubuntu

Python - Matplotlib and Numpy on Debian/Ubuntu

原创 Linux操作系统 作者:jieforest 时间:2012-05-28 12:59:19 0 删除 编辑

There are `python-matplotlib` and `python-numpy` packages in the Debian/Ubunturepos.

However, if you want to run in avirtualenv (with no-site-packages), and pip install these packages from PyPI, youneed some system dependencies installed first to build with:

CODE:

$ sudo apt-get install build-essential python-dev libfreetype6-dev libpng-dev python-virtualenv

Then, you can create a virtualenv, and the installers for Numpy and Matplotlib will work:

CODE:

$ virtualenv env
$ cd env
$ source bin/activate
(env)$ pip install numpy matplotlib

...
...
Successfully installed numpy matplotlib
Cleaning up...

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/301743/viewspace-731269/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-04-23

  • 博文量
    443
  • 访问量
    508560