Install common python modules (Python, eclipse, jdk, and pydev)

Source: Internet
Author: User
Tags md5 win32 windows x64 windows x86 wrapper xml parser yaml parser nltk

Python installation

Download:
Python-2.7.6.amd64.msi
Http://www.python.org/
Python 2.7.6 released
Python 2.7.6 is now available.
Http://www.python.org/download/releases/2.7.6/
Windows X86-64 MSI Installer (2.7.6) [1] (sig)

Install
Configuration:
My computer-> Properties-> Advanced-> environment variables-> PATH in system variables added: C: \ Python27;
Verification:
Create a file pt. py on the desktop with the content of print 'Hello Python'
Run python C: \ Users \ *** \ Desktop \ pt. py in cmd.
* ** Indicates the computer user name.

C: \ Users \ ***> python C: \ Users \ *** \ Desktop \ pt. py
Hello python
C: \ Users \ ***>

**************************************** *********
Eclipse installation:


Eclipse-java-indigo-SR2-win32-x86_64.zip
Http://www.eclipse.org/downloads/
Older Versions
Http://wiki.eclipse.org/Older_Versions_Of_Eclipse
Eclipse Indigo SR2 Packages (v 3.7.2)
Http://www.eclipse.org/downloads/packages/release/indigo/sr2
Eclipse IDE for Java Developers, (128 MB)
Downloaded 1,226,421 TimesDetails Windows 32-bit 64-bit
Http://www.eclipse.org/downloads/download.php? File =/technology/epp/downloads/release/indigo/SR2/eclipse-java-indigo-SR2-win32-x86_64.zip
Download eclipse-java-indigo-SR2-win32-x86_64.zip from:

**************************************** *********
Jdk:
Jdk-7u45-windows-x64.exe
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
Windows x64 125.31 MB jdk-7u45-windows-x64.exe
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

**************************************** *********
Install pydev


To develop python projects in Eclipse.
Http://sourceforge.net/projects/pydev/files/
PyDev for Eclipse
Looking for the latest version? Download PyDev 3.2.0.zip (8.2 MB)
Just getting updated, a few days ago it was 3.1.0.zip
After downloading, decompress and copy the content in the features and plugins folders to the features and plugins folders of eclipse.
If it is repeated, it is replaced.
For details, refer to windows xp, 32-bit, environment, Eclipse + python platform construction
Http://blog.sina.com.cn/s/blog_8af1069601019uaw.html
"Install the python plug-in". Open eclipse and configure preference-PyDev-Interpreter-Python-New python to execute the exe file directory.

**************************************** *********
Pip installation


Https://pypi.python.org/pypi/pip
Download
Pip-1.4.1.tar.gz
A tool for installing and managing Python packages.
Decompress the package, enter the pip-1.4.1 directory in cmd, and execute python setup. py install
Error:
ImportError: No module named setuptools
Therefore, you must first install setuptools

**************************************** *********
Setuptools installation


Https://pypi.python.org/pypi/setuptools/
Setuptools 2.0.2
Click the Downloads button on the right to jump to Downloads.
Scroll to the very bottom of the page to find the links.
You need to go to the bottom of the page to find the link for download.
File Type Py Version Uploaded on Size
Setuptools-2.0.2-py2.py3-none-any.whl (md5) Python Wheel 3.4 527KB
Setuptools-2.0.2.tar.gz (md5) Source 765KB
Download setuptools-2.0.2.tar.gz (md5)
Extract
In cmd, enter the setuptools-2.0.2 directory and execute python setup. py install
Success mark:
Installed c: \ python27 \ lib \ site-packages \ setuptools-2.0.2-py2.7.egg
Processing dependencies for setuptools = 2.0.2
Finished processing dependencies for setuptools = 2.0.2
Continue pip installation

**************************************** *********
Pip installation


Enter the pip-1.4.1 directory in cmd and execute python setup. py install
Success mark:
Installed c: \ python27 \ lib \ site-packages \ pip-1.4.1-py2.7.egg
Processing dependencies for pip = 1.4.1
Finished processing dependencies for pip = 1.4.1
Add to system environment variable Path: C: \ Python27 \ Scripts;
In cmd test, input pip and output:
C: \ Users \ ***> pip
Usage:
Pip [options]
Commands:
Install Install packages.
Uninstall Uninstall packages.
Freeze Output installed packages in requirements format.
List List installed packages.
Show Show information about installed packages.
Search Search PyPI for packages.
Wheel Build wheels from your requirements.
Zip Zip individual packages.
Unzip Unzip individual packages.
Bundle Create pybundles.
Help Show help for commands.

**************************************** *********
Install BeautifulSoup


Pip can be used for installation:
Run the following command in cmd to find BeautifulSoup:
C: \ Users \ ***> pip search BeautifulSoup
BeautifulSoup-HTML/XML parser for quick-turnaround applications
Like screen-scraping.
Pynliner-Python CSS-to-inline-styles conversion tool
HTML using BeautifulSoup and cssutils
Detextile-Convert HTML to Textile syntax using
BeautifulSoup.
TreeSoup-BeautifulSoup-like wrapper around ElementTree.
Beautifulscraper-Python web-scraping library that wraps urllib2 and
BeautifulSoup.
ElementSoup-ElementTree wrapper for BeautifulSoup HTML parser
Beautifulsoup4-Screen-scraping library
Collective. soupstrainer-Clean up HTML using BeautifulSoup and filter
Rules.
Run the command in cmd to install BeautifulSoup.
C: \ Users \ ***> pip install BeautifulSoup
Downloading/unpacking BeautifulSoup
Downloading BeautifulSoup-3.2.1.tar.gz
Running setup. py egg_info for package BeautifulSoup
Installing collected packages: BeautifulSoup
Running setup. py install for BeautifulSoup
Successfully installed BeautifulSoup
Cleaning up...


**************************************** *********
Install PyYAML


Pip can be used for installation.
C: \ Users \ ***> pip search pyyaml
PyYAML-YAML parser and emitter for Python
Pyaml-PyYAML-based module to produce pretty and readable
YAML-serialized data
Yamly-pyyaml wrapper
Enhancedyaml-It makes it more convenient to use PyYAML.
C: \ Users \ ***> pip install PyYAML
Downloading/unpacking PyYAML
Downloading PyYAML-3.10.tar.gz (241kB): 241kB downloaded
Running setup. py egg_info for package PyYAML
Installing collected packages: PyYAML
Running setup. py install for PyYAML
Checking if libyaml is compilable
Unable to find vcvarsall. bat
Skipping build_ext
Successfully installed PyYAML
Cleaning up...

**************************************** *********
Nltk installation

Https://pypi.python.org/pypi/nltk/
Nltk 2.0.4
File Type Py Version Uploaded on Size
Nltk-2.0.4.tar.gz (md5) Source 933KB
Nltk-2.0.4.win32.exe (md5) MS Windows installer 2.5 1 MB
Nltk-2.0.4.zip (md5) Source 1 MB
Download nltk-2.0.4.tar.gz
Decompress, go to the nltk-2.0.4 directory in cmd, and execute python setup. py install
Success mark:
Installed c: \ python27 \ lib \ site-packages \ nltk-2.0.4-py2.7.egg
Processing dependencies for nltk = 2.0.4
Searching for PyYAML = 3.10
Best match: PyYAML 3.10
Adding PyYAML 3.10 to easy-install.pth file
Using c: \ python27 \ lib \ site-packages
Finished processing dependencies for nltk = 2.0.4
Open python Idle:
Input import nltk
Input nltk. download ()
In the NLTK Downloader dialog box, modify Download Diretory (under the drive letter or another drive letter ). Click all to start downloading.
You can go to NLTK release a http://nltk.org/nltk_data/to download the missing file. Then, download Diretory. Do not delete the zip file.
After the system is reinstalled, the nltk_data folder can be retained to avoid repeated downloads.

**************************************** *********
Install mysqldb

Http://www.lfd.uci.edu /~ Gohlke/pythonlibs/# mysql-python
MySQL-python-1.2.4.win-amd64-py2.7.exe
Double-click the installation button.
Verification successful:
Py file:
Import MySQLdb
Connection = MySQLdb. connect (host = "127.0.0.1", user = "root", passwd = "root", db = "dbtest ")
Cursor = connection. cursor ()
Cursor.exe cute ("Select id, content FROM tabletest ")
Print "Rows selected:", cursor. rowcount
The number of rows in the tabletest table in the dbtest database output from the running result.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.