Installation

Windows

  1. Download both Python2 and Python3 (https://www.python.org/downloads/)
  2. Install by executing *.msi files
  3. Copy C:\Python27\python.exe with the name python2.exe
  4. Copy C:\Python34\python.exe with the name python3.exe
  5. Add Environment Variables
    1) Go to System Variables
    2) Add new variables (PYTHON2_HOME: C:\Python27, PYTHON3_HOME: C:\Python34)
    3) Add two variables to the end of 'path': %PYTHON2_HOME%;%PYTHON3_HOME%;
  6. Version check
    C:\Users\ChangUk> python -V
    Python 2.7.10
    C:\Users\ChangUk> python3 -V
    Python 3.4.3

Linux (Ubuntu)

  1. Run the following command:
    $ sudo apt-get install python
    $ sudo apt-get install python3
  2. Version check
    $ python -V
    Python 2.7.6
    $ python3 -V
    Python 3.4.0



Install pip

Windows

  1. Download pip-get.py file from here
  2. Run the command:
    C:\Users\ChangUk> python get-pip.py

Linux (Ubuntu)

Install pip:

$ sudo apt-get install python-pip python-dev build-essential 
$ sudo pip install --upgrade pip 
$ sudo pip install --upgrade virtualenv

Install pip for Python3:

$ sudo apt-get install python3-pip
$ sudo pip2 install MODULE_NAME
$ sudo pip3 install MODULE_NAME

만약 pip3로 설치를 진행하려다 'ImportError: cannot import name IncompleteRead' 에러가 발생한다면 pip를 최신 버전으로 업그레이드 해주면 된다. 버전 차이로 인한 문제이다.

$ easy_install -U pip



Install Scientific Libraries for Python

All-in-one: http://continuum.io/downloads

Windows

SciPy (http://scipy.org/)

Numpy (http://numpy.org/)

matplotlib (http://matplotlib.org/)

Linux (Ubuntu)

$ sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose



PyDev on Eclipse

  • Run Eclipse
  • Help > Install New Software... > Add... > Name: PyDev Update / Location: http://pydev.org/updates > OK > Keep install process...
  • Reference: http://dynamide.tistory.com/1272



See Also