The goal is to use Python with OpenCV under Ubuntu 14.04.
The first step is to install Python and its packages. I installed a Python package manager Anaconda.
[code lang="bash"] wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.2.0-Linux-x86_64.sh bash Anaconda-2.2.0-Linux-x86_64.sh conda update -y conda conda update -y anaconda
install packages
conda install -y launcher
array processing for numbers, strings, records, and objects
conda install -y numpy
Scientific Library
conda install -y scipy
plot
conda install -y matplotlib conda install -y bokeh conda install -c https://conda.binstar.org/bokeh ggplot
Python IDE
conda install -y spyder
Symbolic mathematics
conda install -y sympy
Interactive computing
conda install -y ipython
Image processing routines for SciPy
conda install -y scikit-image
Machine Learning and Data Mining for SciPy
conda install -y scikit-learn
Statistical computations and models for use with SciPy
conda install -y statsmodels
read/write Excel 2007 xlsx/xlsm files
conda install -y openpyxl
Python Imaging Library
conda install -y pillow
Powerful data structures for data analysis, time series,and statistics
conda install -y pandas
Non-Linear Least-Squares Minimization and Curve Fitting
conda install -y lmfit
documentation generator
conda install -y sphinx
interactive 2-dimensional plotting
conda install -y chaco
Multidimensional data visualization across files
conda install -y glueviz
statistical data visualization
conda install -y seaborn conda install -y pytest conda install -y psutil conda install -y pep8 conda install -y pylint conda install -y pyflakes conda install -y rope
pygtk
conda install -c https://conda.anaconda.org/mw pygtk2
graph issue
conda install -y networkx conda install -y pydot-ng conda install -y graphviz
Boost
conda install -y boost
TensorFlow is a package for using Deep Learning
conda install -c https://conda.anaconda.org/jjhelmus tensorflow
DTW and FastDTW, installation using pip instead of conda install
pip install dtw pip install fastdtw
For MedPy
conda install -c https://conda.anaconda.org/jcarlin nibabel pip install medpy [/code]
I use an IDE spyder (Scientific PYthon Development EnviRonment), which is installed via Anaconda installation. From terminal, type spyder runs the IDE.