Windows Server Pyton Auxiliary operations--03. Install the Python development plug-in for visual Studio PTVS

Source: Internet
Author: User

PTVS (Python Tools for Visual Studio)

http://pytools.codeplex.com/

Current Version: 2.1 RC

PTVS (Python Tools for Visual Studio) is an open source project that is released with the Apache 2.0 license. The main features of PTVs include: CPython, IronPython, Jython and PyPy, advanced editing functions such as IntelliSense, multi-structure, built-in REPL (Read-eval-print loop) Windows, debugging and analysis functions, and more.

Python has a lot of Ides, but for. NET developers to use PTVs to develop is a natural choice.

1. Installing PTVs

Download and install Python (https://www.python.org/downloads/windows/) 2.7.8

Download and install PTVs (http://pytools.codeplex.com/) 2.1 RC

2. Write a Hello world program

Create a new project for Python application

Seemingly automatically wrote a Hello World program, now we F5 run the project, the goal is achieved.

How to debug? Put a breakpoint F5 start the program can be debugged, like C #.

3. Reference to third-party class libraries

First find the Python environments window in the View-other window and update the DB.

Then find the Python environments in Solution Explorer, which is a reference to the Python environment and feels a bit like a choice. NET version, which allows you to select multiple versions of Python for development environment settings.

Right-click Pop-up window on the owning environment select "Install Python Packages ..." menu

Enter the name of the extension to be installed, and PTVs will download and install the package automatically

4. Publish your app

First install the corresponding Python software on the published server, and then copy the developed PY files to the server, using Python IDLE (right click on the py file to select this IDLE open) to open and execute the program (shortcut key is F5).

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.