Python environment configuration and project establishment, python Environment Project
1. Install Python
The two stable Python versions are Python 3.5 and Python 2.7. I use Python 2.7, Which is https://www.python.org/downloads/. after downloads/, follow the normal software installation procedure.
Configure Python environment variables: Control Panel-> system-> advanced system settings-> environment variables-> Path, and add the python installation Path in Path, for example, C: \ Python27; then, click OK or OK. The python environment variable is configured. Open cmd and enter python for verification. "Python 2.7.12 (v2.7.12: d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64-bit (AMD64)] is displayed. on win32
Type "help", "copyright", "credits" or "license" for more information. "installation is complete.
Ii. Install Aptana Studio 3
We recommend that you set the default working directory to a directory in English when installing and running. Avoid possible incompatibility issues (some functions are unavailable or work exceptions ). Download link: http://aptana.com/
3. Install Pydev
1. Install Pydev in two ways: Download the Zip file for local installation and online update to obtain new features. I use the latter. This method keeps your development plug-ins updated at any time. Aptana uses the Eclipse plug-in management mechanism (originally, Aptana was developed based on eclipse ). Follow the steps below to update the SDK.
Select the menu: Help-> Software Upates-> Find and Install-> Search for new features to install-> New remote site-> set a name such as pydev, url fill in http://pydev.org/updates-> and then follow the prompts to download the installation.
2. In the pop-up Install window, click Add to Add a repository:
3. Then you can see Eclipse search:
4. Soon, you can find PyDev:
5. Just select to install the latest version and cancel that: Contact all update sites during install to find required software
6. Click "Next" to install the agent. The agent calculates the dependency:
7. There are no other dependencies here, so it's just PyDev. Then, let's take a look at its detailed introduction and Next:
8. Then accept the Agreement license:
9. Then we can see that we have downloaded the corresponding PyDev:
10. Download the result and install it. During this period, you will see whether to use this authentication. Of course, click OK:
11. Then you will need to restart Eclipse, restart, and install PyDev.
4. Configure the Python Development Environment
In Aptana, open Window-> Preferences... Dialog box, select "PyDev"-> "Interpreter Python" from the tree list on the right, and click Auto Config. Aptana will automatically search for Python installed in the system. And add the PYTHONPATH. Check whether there are any obvious exceptions. Click OK to exit.
5. Create a Python Project
1. Create a project
2. Select the Project of PyDev:
3. Create a project
4. Create a file
5. Then you can write the code:
6. Write and test the Python code.
Write the following code:
#! /Usr/bin/python #-*-coding: UTF-8-*-"" Function: [Record] tossing IDE tool: Aptana Studio 3 http://www.cnblogs.com/devin-guwz/
Author: Devin Gu Version: 2016-06-29 Contact: admin at crifan dot com "import platform; print" PyDev under Aptana Studio 3, platform. uname () = ", platform. uname ();
7. Run:
Then select Python Run:
8. You can see the result in the Console:
9. You can write a python program.
Vi. Summary
Aptana Studio, for Python development, is actually Eclipse + PyDev.
There is no difference.
Its strength lies in writing Javascript and other web-related things.