Skip to content

Issues with HDF5 Installation #5

Description

@alvations

If there's some problem things that happens when using/installing h5py and fuel, you could try to reinstall the h5py library, see http://stackoverflow.com/questions/33209048/installing-fuel-machine-learning-using-pip-on-ubuntu-14-04-02

For Ubuntu 14.04:

sudo apt-get install libhdf5-dev
sudo HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/serial/ pip install h5py
sudo pip install cython
sudo pip install git+git://github.com/mila-udem/fuel.git

For a complete installation of the tools that is used with dl4mt and MILA's summerschool2015, I was using these instructions for Ubuntu 14.04 (i tend to avoid conda, so there's only pip instructions):

# Install dependencies (mostly for cython and scikit-lern)
sudo apt-get install build-essential python-dev python-setuptools python-numpy python-scipy libatlas-dev libatlas3gf-base
sudo update-alternatives --set libblas.so.3 /usr/lib/atlas-base/atlas/libblas.so.3
sudo update-alternatives --set liblapack.so.3 /usr/lib/atlas-base/atlas/liblapack.so.3
sudo pip install cython

# Install plotting tools.
sudo apt-get install graphviz
sudo pip install pydot2
sudo pip install plotly # Not necessary but this can plot interactive graphs.
sudo apt-get install python-matplotlib # Also, not necessary but good to have

# Install Theano (Bleeding edge)
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git
sudo pip install git+git://github.com/Theano/Theano.git

# Install fuel from MILA (https://github.com/mila-udem/fuel)
sudo apt-get install libhdf5-dev
sudo HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/serial/ pip install h5py
sudo pip install git+git://github.com/mila-udem/fuel.git

# Installs Ipython Notebook
sudo apt-get install ipython3 ipython3-notebook

On top of the tool stack for the exercises, these might come in handy too:

# Install NLTK
sudo pip install git+git://github.com/nltk/nltk.git # Bleeding edge NLTK with translation tools

# Install Gensim
sudo pip install --upgrade gensim # Topic modelling and embeddings tool

# Install scikit-learn
sudo pip install scikit-learn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions