Breadcrumb
Installing Python Modules
How to Install Python Modules
Python modules should be installed using pip and adding the --user flag to specify that the installation goes in your home directory (e.g. pip install --user theano):
$ pip install --user theano
Collecting theano
Downloading Theano-1.0.1.tar.gz (2.8MB)
100% |████████████████████████████████| 2.8MB 455kB/s
Requirement already satisfied: numpy>=1.9.1 in /usr/lib64/python2.7/site-packages (from theano)
Requirement already satisfied: scipy>=0.14 in /usr/lib64/python2.7/site-packages (from theano)
Requirement already satisfied: six>=1.9.0 in /usr/lib/python2.7/site-packages (from theano)
Installing collected packages: theano
Running setup.py install for theano ... done
Successfully installed theano-1.0.1
You can then test that the package is installed and working by importing the module in an interactive shell:
$ python
Python 2.7.14 (default, Nov 2 2017, 18:42:05)
[GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import theano
>>>