Home > Article > Backend Development > Can VS write python?
VS can write python, the specific steps are as follows:
Install visual studio2013
1. Download and install VS2013
Install python2.7
1. Download python2.7 from the official website, download address: https ://www.python.org/getit/ As shown in the picture:
The download is an executable file. You can install it by double-clicking it. The installation path remains the default (ie: C: \Python27).
2. Configuration of environment variables
Will be C:\Python27 (convenient to run python directly in cmd) and C:\Python27\Scripts (convenient to install whl files directly in the command line) Added to windows environment variables.
Related recommendations: "Python Video Tutorial"
3. Verify whether the installation is successful
Open cmd, enter python, and the following figure will appear. Successful installation:
Use the command line to install the program package
1. Taking beautifulsoup as an example, first download the compressed package. After decompression, it looks like this:
2. In the cmd window, use the cd command to jump to the directory where the picture above is located, and then enter the command: python setup.py build to compile Program package
3. Then enter: python setup.py install Installation package
4. Verify whether the installation is successful, as shown in the figure:
Install PTVS
1. Download Python Tools For Visual Studio. Download address: https://github.com/Microsoft/PTVS
2. Just double-click to install.
3. After the installation is completed, the effect of creating a new project in VS is as follows:
Use VS to install various program packages
The method of using VS to install various python packages is as follows:
The above is the detailed content of Can VS write python?. For more information, please follow other related articles on the PHP Chinese website!