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

Python 2.7.6 released
Python 2.7.6 is now available.
Windows X86-64 MSI Installer (2.7.6) [1] (sig)

My computer-> Properties-> Advanced-> environment variables-> PATH in system variables added: C: \ Python27;
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:
Older Versions
Eclipse Indigo SR2 Packages (v 3.7.2)
Eclipse IDE for Java Developers, (128 MB)
Downloaded 1,226,421 TimesDetails Windows 32-bit 64-bit
Http:// File =/technology/epp/downloads/release/indigo/SR2/
Download from:

**************************************** *********
Windows x64 125.31 MB jdk-7u45-windows-x64.exe

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

To develop python projects in Eclipse.
PyDev for Eclipse
Looking for the latest version? Download PyDev (8.2 MB)
Just getting updated, a few days ago it was
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
"Install the python plug-in". Open eclipse and configure preference-PyDev-Interpreter-Python-New python to execute the exe file directory.

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

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
ImportError: No module named setuptools
Therefore, you must first install setuptools

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

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)
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
Pip [options]
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
TreeSoup-BeautifulSoup-like wrapper around ElementTree.
Beautifulscraper-Python web-scraping library that wraps urllib2 and
ElementSoup-ElementTree wrapper for BeautifulSoup HTML parser
Beautifulsoup4-Screen-scraping library
Collective. soupstrainer-Clean up HTML using BeautifulSoup and filter
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

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 (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 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:// /~ Gohlke/pythonlibs/# mysql-python
Double-click the installation button.
Verification successful:
Py file:
Import MySQLdb
Connection = MySQLdb. connect (host = "", 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: 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.