Home > Backend Development > Python Tutorial > How to set python path

How to set python path

silencement
Release: 2019-05-22 13:32:45
Original
19071 people have browsed it

Life is short, I use Python. Recently, many newcomers are inquiring about Python installation. Python installation is not a big problem. I thought that after installing Python, everything would be fine and I would have peace of mind, but in actual operation, problems will occur.

How to set python path

The problem is as shown below

1531192819516e8cf9cf053 (1).jpg

The reason for the above problem is that we did not add the path to Python to the environment variables, or forget to check Add python to path during the installation of Python

Solution

Find your own Python installation path and copy this path

How to set python path

Follow the following operations: My Computer→Properties→Advanced Properties→Environment Variables, find the path, as follows

How to set python path

Double-click path and add the copied Python path, as follows:

How to set python path

Finally click OK, and the Python environment variables are configured.

The above is the detailed content of How to set python path. 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