1. My environment
Operating system: Win7 flagship Service Pack 1
VS version: Microsoft Visual Studio Ultimate 2012 version 11.0.50727.1 Rtmrel
2. Installation process
PTVS (python Tools for Visual Studio) is a Python development plugin under vs
The first page of PTVS on OSC is: Http://www.oschina.net/p/PTVS
The download page is: http://pytools.codeplex.com/releases/view/109707
Because I'm using the VS version is 2012, so I downloaded the corresponding 2012 version of this plugin: PTVS 2.1 VS 2012.msi
After downloading the file run File PTVs 2.1 VS 2012.msi, there will be Windows running security warning, stand-alone "run" can
After running, you will see the User agreement interface: Apache License Version 2.0
The contents of this agreement can be seen on this page: http://www.apache.org/licenses/LICENSE-2.0
Check here "I accept the terms in the License agreement" is OK
The installation process is a reading bar, and at some point it may be stuck for a while
After installation, click the "Finish" button to end the installation
3. Interpreting the Script
Open Visual Studio, find file → new → project
In the new project page, in the left tree menu, installed → templates → Other languages you can find Python
Choose Python application to create one of the simplest Python programs
After you enter the code, you can execute the code by clicking the Start button.
Execute Code "print (' Hello world ')" effect such as:
END
Install the Python development plugin on Visual Studio Ultimate PTVS