Home > Backend Development > Python Tutorial > Does python need to configure the environment?

Does python need to configure the environment?

anonymity
Release: 2019-06-14 09:52:18
Original
7362 people have browsed it

Python is a computer programming language. It is an object-oriented dynamic type language that was originally designed for writing automated scripts (shells). With the continuous updates of the version and the addition of new language features, it is increasingly used for the development of independent and large-scale projects.

Does python need to configure the environment?

Python configuration environment:

Method 1: Use the cmd command to add the path environment variable

Under cmd Enter: path=%path%;D:\Python27 and then press the "Enter" key.

Where: D:\Python27 is the installation directory of Python.

Method 2: Add the Python directory to the environment variable

(1) Right-click "Computer" and then click "Properties"

(2) Then click "Advanced System" Set "

(3) Select "Path" under the "System Variables" window and double-click it!

(4) Then in the "Path" line, add the python installation path (my D:\Python27). ps: Remember, the path is directly separated by a semicolon ";"!

(5) After the final setting is successful, enter the command "python" on the cmd command line to display the relevant information.

The above is the detailed content of Does python need to configure the environment?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template