Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Thursday, July 31, 2014

Install matplotlib for python3

you have to install python3-pip bu using apt-get (e.g. in debian)

then run:

pip install matplotlib

If got the error

(Currently using distribute 0.6.24dev-r0 (/usr/lib/python3.2/dist-packages))
    Complete output from command python setup.py egg_info:
    The required version of distribute (>=0.6.28) is not available,

and can't be installed while this script is running. Please

install a more recent version first, using

'easy_install -U distribute'.

Try:

sudo apt-get install python3-setuptools
easy_install3 -U distribute

If still does not work
Try:

export PYTHONHOME=/usr/local/lib/python3.2/

Read more ...

pip install h5py error fix

If you got the error like following when you install h5py:

...
...
h5py/api_compat.h:27:18: fatal error: hdf5.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1
...
...

To fix it, just run the following command.

sudo apt-get install libhdf5-dev
Read more ...