Windows under the Python development environment configuration

Source: Internet
Author: User

The development environment is as follows:

Operating system: Windows 7 32/64-bit

Development language and tools: Python 2.7.6, Setuptools 9.1, Pip 6.0.3

Development Ide:ulipad, WxPython 3.0, ComTypes 1.1.1

Other tools: Py2exe, PYODBC, etc.

  

1. Install Python

Go to download Pywin32, and install.

2. Install Setuptools

    • To Https://pypi.python.org/pypi/setuptools download, there are three file types selected at the bottom of the page, such as any of the options.

  Note: "Good pressure" can be decompressed.

    • Decompression after double-click Run "easy_install.py", after successful will be "C:\Python27\" under the new Folder "Scripts", there will be 6 Easy_install related files, including Easy_install.exe.

3. Install Pip

    • Go to http://pip.readthedocs.org/en/latest/installing.html, download get-pip.py
    • Double-click to run "get-pip.py", after success will see in "C:\Python27\Scripts\" 3 Pip-related files, including Pip.exe.
    • Add environment variables, right-click Computer-Properties-Advanced system settings-environment variables-System Variables-path-edit-variable values, add pips at the end of the path, such as "; C:\Python27\Scripts\ ".
    • Restart the computer, run CMD after success, and you can use PIP as usual in Linux.

Note: Use PIP install * * *, may appear the following error "Unicodedecodeerror:ascii codec can ' t decode", the solution for the error in the page (the wrong message at the end!) ) Add code:  

Import sysreload (SYS) sys.setdefaultencoding ('gb18030

4. Install Ulipad

    • Because Ulipad relies on wxpython, you need to install Wxpython, Http://www.wxpython.org/download.php#linux download the appropriate version, and install it.
    • Pip Install ComTypes
    • Go to Http://git.oschina.net/limodou/ulipad Download the latest version of Ulipad, unzip and then double-click Run "ulipad.py".

  

Windows under the Python development environment configuration

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.