Environment variable settings (Windows version)

Setting environment variables on Windows

1. Add the Python directory to the environment variable

In the command prompt box (cmd): enter
path=%path%;C:\Program Files\Python36
C:\Program Files\Python36 is the Python installation directory.
Commands can be entered and exited in the console:Python

2. Add the pip directory to the environment variable

Use the CD command to enter the pip decompression directory, enter the python setup.py install
add environment variable, and enter and path=%path%;C:\Program Files\Python36\Scripts
exit the command in the console: pip

It is recommended that you use the pip tool to manage the python installation package.
Whether it is win, mac or linux, the installation method with pip is basically:
pip install <package-name>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325565402&siteId=291194637