Home  >  Article  >  Backend Development  >  Can VS write python?

Can VS write python?

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-06-19 09:56:0725231browse

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:

Can VS write python?

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:

Can VS write python?

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:

Can VS write python?

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:

Can VS write python?

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:

Can VS write python?

Use VS to install various program packages

The method of using VS to install various python packages is as follows:

Can VS write python?Can VS write python?

Can VS write python?

The above is the detailed content of Can VS write python?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn