HOW TO SPEND ONE DAY INSTALLING EVERYTHING FOR ECLIPSE/PYTHON/PYDEV

1. Install Java if not already installed
<http://java.com/en/&gt;

2. Install Python (2.7 in my case)
<https://www.python.org/download/releases/2.7/&gt;

3. Install Eclipse
* In my case, I downloaded Eclipse IDE for Java Developers,
which is eclipse-java-luna-SR2-win32-x86_64.zip
<http://www.eclipse.org/downloads/&gt;

4. Within Eclipse, add PyDev
1) Go to Help >> Install New Software… >> Find and Install…
2) Click Add… button
3) Introduce: PyDev / http://pydev.org/updates
4) click next, next, accept agreement, trust licence, etc
6) Restart Eclipse
7) Go to Window >> Preferences >> PyDev >> Interpreters >> Python Interpreter
8) In the top of preferences pane, click New… and locate Python, or autoconfig, etc
9) [Optional] Go to Window >> Open perspective >> Other: choose PyDev
* Extra tips: <http://www.caktusgroup.com/blog/2011/08/31/getting-started-using-python-eclipse/&gt;

5. Make some “Hello world” to see if it works. New Project >> New File >> test.py

6. Add Python to PATH in System Variables of Computer

7. Install pip. Requires running .py files through the CMD, so Python path
has to be set beforehand (step 6)

8. Add pip to PATH in System Variables of Computer, so that ‘pip’ commands
to install libraries works.

9. In CMD, ‘pip install x’, where x is the name of the library/package should
do the job.
Notes
—————————————————–

* Packages to install: http://www.scipy.org/install.html#individual-binary-and-source-packages

* When installing numpy, I encountered a problem: missing Microsoft Visual C++,
and missing vcvarsall.bat file. But a link in the same line suggests to
download this Visual software from <http://www.microsoft.com/en-us/download/details.aspx?id=44266&gt;
After installing this, run ‘pip install numpy’ again, wait a bit and
everything will install okay.

* Extra packages for image processing:
– opencv 2.4.10

* When installing matplotlib, if the installation is done via pip, the
secondary libraries such as ‘six’ are also installed.

* I fucked up and installed Python x32 on Eclipse x64, so for opencv2 I need to install x32-x86 instead of x64.