1.5 Quick Setup
In this part, you can easy to setup Theano, Lasagne, and Nolearn in the global environment via executing the bash script below:
#!/bin/bash
# Easy installation on Ubuntu 14.04 server
### Requirements ###
sudo apt-get install python-numpy
if [ $? -eq 100 ]; then
sudo mv /var/cache/apt/archives/lock /var/cache/apt/archives/lock_bak
sudo apt-get install python-numpy
fi
sudo apt-get install cython python-scipy python-dev python-pip python-nose g++ libopenblas-dev git libblas-dev liblapack-dev libatlas-base-dev gfortran
### Install Theano, Lasagne, Nolearn ###
# If you want to install local packages, please use `virtualenv` or use `pip install --user`
sudo pip install -r https://raw.githubusercontent.com/dnouri/nolearn/master/requirements.txt
sudo pip install nolearn==0.5b1 #Don't install the current version!
Installing Problems
Scipy upgrade failed: try to install packages below then reinstall Scipy:
$ sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose $ sudo pip install scipy
where first line was provided by scipy.org.
2016/07/13 update:
If your machine is 64-bit, it might apper a LONG LONG time when installing the Scipy 0.16.1. Without long time for waiting, you can try the older version instead of it :
$ pip install scipy==0.10.1
Can not find nolearn-requirements.txt: here is the word inside:
# https://raw.githubusercontent.com/dnouri/nolearn/master/requirements.txt numpy==1.10.4 scipy==0.16.1 Theano==0.8 -e git+https://github.com/Lasagne/Lasagne.git@8f4f9b2#egg=Lasagne==0.2.git joblib==0.9.3 scikit-learn==0.17 tabulate==0.7.5
try to use one-by-one commands to install, like this:
$ sudo pip install numpy==1.10.4 $ sudo pip install scipy==0.16.1 ...
- Could not find a tag or branch '8f4f9b2':It is not a big issue. System would install the approximate version automatically. Like Lasagne 0.2.dev1.