2016年5月22日 星期日

Use python in Eclipse and library setting

Here is just to take a note on python programming surrounding setting for my personal using

Program: Python
IDE: Eclipe (java developers version)

  =============================================================
 01. Python programming in Eclipse
    - install python first
       https://www.python.org/
    - install Java jdk
        http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
    - install eclipse (“eclipse IDE for Java developers” is OK)
        http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/mars2
    - install pydev in eclipse   
        a) Eclipse->Help-> install New software,fill-in
            name: Pydev
            url: http://pydev.org/updates
        b) setting "Eclipse -> Window –> Pydev-> Python - Interpreter"
            New –> Browse –> C:\Python32\python.exe
        c) Change color theme
            - download "eclipse color theme"; help -> eclipse marketplace
            - window-> preferences; general/ appearance/ color theme/ "Oblivion"
            - window-> preferences; general/ appearance/ color and fonts/
                                                    basic/ "text font" ; Consolas_size 12

02. install "pip"
    (pip is already installed if you're using Python 2 >=2.7.9 or Python 3 >=3.4 )
    https://pip.pypa.io/en/stable/installing/
    download "get-pip.py", open window command type [python get-pip.py]
    - upgrading "pip"
        open window command type [python -m pip install -U pip]
   
03. install "setuptools"
    (Python 2 >=2.7.9 or Python 3 >=3.4 installed from python.org, you will already have pip and setuptools, but will need to upgrade to the latest version)
    - upgrading "setuptools"
        open window command type [python -m pip install -U setuptools]

04. install "wheel"       
    (wheel can be installed in the newst "pip")   
    - upgrading "wheel"   
        open window command type [python -m pip install -U wheel]
       

05. install "numpy" (NumPy——快速處理資料) ** Memjet necessarily"
    - install
        open window command type [python -m pip install numpy]
    - upgrading
        open window command type [python -m pip install -U numpy]
       
06. install "scipy" (SciPy——數值計算庫) ** Memjet necessarily"
    - install
        open window command type [python -m pip install scipy]
    - upgrading
        open window command type [python -m pip install -U scipy]       
    - remark on install scipy 0.17
        It doesen't work to install from pip directly.
        a) to download the scipy-0.17.0-cp27-cp27m-win32.whl file from http://www.lfd.uci.edu/~gohlke/pythonlibs/
        b) to put the file under python folder
        c) open window command type [python -m pip install scipy-0.17.0-cp27-cp27m-win32.whl]
       
07. install "pyodbc" (pyodbc —— Django SQL Server DB backend ) ** Memjet necessarily"
    - install
        open window command type [python -m pip install pyodbc]
    - upgrading
        open window command type [python -m pip install -U pyodbc]
               
08. install "matplotlib" (matplotlib —— to produce publication quality 2D graphics ) ** Memjet necessarily"
    - install
        open window command type [python -m pip install matplotlib]
    - upgrading
        open window command type [python -m pip install -U matplotlib]
               
       
09. install "ipython" (ipython —— IPython provides a rich toolkit to help you make the most out of using Python interactively )
    - install
        open window command type [python -m pip install ipython]
    - upgrading
        open window command type [python -m pip install -U ipython]
               
10. install "pandas" (pandas —— a Python package providing fast, flexible, and expressive data structures designed )
    - install
        open window command type [python -m pip install pandas]
    - upgrading
        open window command type [python -m pip install -U pandas]
               
11. install "sympy" (sympy —— 符號運算好幫手)
    - install
        open window command type [python -m pip install sympy]
    - upgrading
        open window command type [python -m pip install -U sympy]               
               
12. install "Genshi" (Genshi - Genshi is a Python library that provides an integrated set of components for parsing, generating, and processing HTML, XML)
    - install
        open window command type [python -m pip install Genshi]
    - upgrading
        open window command type [python -m pip install -U Genshi]                   
               
12. install "wxPython" (wxPython - wxPython is a GUI toolkit for Python that is a wrapper around the wxWidgets C++ GUI library.)
    - install
        to download the binary from "http://wxpython.org/download.php" directly
               
13. install "nose" (nose - nose extends unittest to make testing easier.)
    - install
        open window command type [python -m pip install nose]
    - upgrading
        open window command type [python -m pip install -U nose]                   
               

沒有留言:

張貼留言