Windows Eclipse+pydev Configuration PYTHON+PYQT4 development environment

Source: Internet
Author: User
This article for you to share the Windows configuration Python PYQT4 development environment detailed steps for your reference, the specific content is as follows

1. Download the relevant software

Eclipse Download Address: http://www.eclipse.org/downloads/

JRE Download Address: http://www.java.com/zh_CN/download/manual.jsp

Pydev Download Address: http://sourceforge.net/projects/pydev/

Python Download Address: http://www.python.org/getit/

PYQT4 Download Address: http://www.riverbankcomputing.co.uk/software/pyqt/download

2. Install JRE, Python, PyQt, install with default settings, go all the way next.

Operating system: Windows 7 Ultimate 64bit

The software version is as follows:

Jre-7u9-windows-x64.exe

Python-3.3.0.msi

Pyqt-py3.3-x86-gpl-4.9.5-1.exe

3. Unzip the Eclipse and Pydev compressed package

3.1 Extract the Eclipse Compression Pack (Eclipse-jee-indigo-sr1-win32-x86_64.zip) to a folder (C:\eclipse)

3.2 Extract the PyDev compressed package (PyDev 2.7.1.zip) and overwrite two folders with the same folder under Eclipse

4. Configure Eclipse

4.1 Open Eclipse.exe, the first time you need to configure the workspace path

4.2 Select Window--Preferences


4.3 In the Pop-up dialog box, select Pydev-Interpreter-python, click the button "New ..."


4.4 Enter the name of the Python interpreter with the Python.exe address, click OK

4.5 Choose "Select All", click OK to confirm


4.6 Click "Forced Builtins" and select "New ..."


4.7 Enter "PyQt4", click OK


4.8 Confirm that forced Builtins has PyQt4, click OK


5. Create a new Pydev Project

5.1 Right mouse button Select New---Project


5.2 Select PyDev--PyDev Project, click Next

5.3 Fill in Project Name, select Grammar Version-to 3.0, select Interpreter-Python3.3, click Finish


6. Writing test Code

6.1 Create a new Python module in the SRC folder right-----PyDev module


6.2 Enter module name, click Finish


6.3 Testing Python

Test code:

Print ("Hello World")  

Click the Green Run button to execute

Console bar Output Normal OK


6.4 Test PyQt4

Test code:

Click the Green Run button to execute

A button window pops up OK

The above is the whole content of this article, I hope that everyone's study has helped.

  • 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.