arcpy Development IDE (GO)

Source: Internet
Author: User

Transferred from: http://www.cnblogs.com/myyouthlife/p/3576669.html?utm_source=tuicool&utm_medium=referral

The recent use of arcpy scripts from time to time inevitably faces the Python IDE's choice. There are many Ides that can be used for Python development, like Eclipse and so on. After trying some ides, gradually fixed using the following two paragraphs.

One, Python Tools for Visual Studio (PTVS)

For me this is used to the development interface of Visual Studio, the Smart tips and debugging methods of NET application staff. This plugin is the gospel. This is an open source plug-in, download link: https://pytools.codeplex.com/, currently the latest version 2.0, support vs2013.

After installing PTVs, you can see the relevant Python project in the new project. 1 is shown below:

Figure 1 New project in VS

Currently, the Python version is 3.x, but the current popular version or the version you adopt, not necessarily the latest version, in the Python development process need to specify the relevant version of Python and so on. After you have created the Python project in VS, you can specify the relevant environment in the Python Environments2 in the solution, as shown in. It can automatically list the version of Python that is available in the current machine, as shown in 3:

Figure 2 Python Solution

Figure 3 Loading the Python development environment

During the Python development process, you may need to import some Python packages, such as in arcpy development, import the arcpy package, select Search path in the solution shown in Figure 2, load arcpy's package, 4 as shown:

Figure 4 Loading the arcpy package

Once loaded, you'll see the smart tips for arcpy development in vs. 5 is shown below:

Figure 5 arcpy Development Smart Tips

Second, Pycharm

Pycharm is a python compiler developed by JetBrains, Jetbrain has a lot of excellent compilers, such as the user JS development webstrom and so on. Pycharm should be the best Python development IDE for the time being,

Using Pycharm for Python development, you first need to configure the relevant Python interpreters, and add the associated path under File-settings-python interpreters, as shown in 6:

Figure 6 The associated path configuration for Python development

Once set, Pycharm will import the Python package associated with that path. After Setup, automatically search for the arcpy package, as shown in 6:

Figure 6 Pycharm Auto-Retrieve arcpy Package

Set up the relevant environment, smart tips what all have, 7 shows:

Figure 7 Tips for Pycharm

Iii. Summary

In general, these two Ides are the best I've ever used. PTVs in Smart tips and debugging, but need to manually import the reference package, and Pycharm in addition to the above two can sometimes automatically retrieve the Python package inside the machine. Both are slow to run, but they are fast in the inside I've seen.

arcpy Development IDE (GO)

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.