python3 Downloads:
Python's official website: https://www.python.org/
Environment configuration: https://www.runoob.com/python3/python3-install.html
1.DOS under python into the environment:
python 2:py -2
python 3:py -3
2. Exit python environment exit () / quit () / ctrl + z + enter
3.pip :( command to be executed in a non-pyhton environment)
Upgrade command:
py -3 -m pip install --upgarde pip /py -3 -m pip install -u pip(pip为包名)
Installation command:
-3 -m PIP install Py
nose (nose to the package name)
-3 -m install PIP nose Py
== 1.2.8
# specified version is installed
Uninstall command:
py -3 -m pip
uninstall nose
View version installation package:
-3 -m Py PIP Show under the nose # non-python command environment
import under the nose #python environment commands, can be introduced into the installation is successful
Search command:
py -3 -m pip search "nose"
List installed packages:
py -3 -m
pip list
Interpreter
1. Interactive Programming:
1.1 we can enter the "Python" at the command prompt to start the Python interpreter
Py -3 1.2 can also enter into interactive mode in DOS
2. Scripted Programming:
2.1 The code is written hello.py file
2.2 execute the script with the following command: py -3 C: \ Users \ Administrator \ Desktop \ hello.py