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