Python Command Line Introduction
0:55 read·120 words· published
python/python3 Command
After successfully installing Python, you can perform Python-related tasks by typing python
or python3
at the command line on different systems. For example, the following command is used to view Python version information.
Windows
python --version
UNIX/Linux/macOS
python3 --version
Make sure the Python directory is added to the PATH environment variable
Before using Python, you need to add the directory where Python is located to the environment variable PATH
or switch the command line to that directory, otherwise you may get a message like “The command does not exist”.
Catalogs
Get Source Code
The source code used in this part can be viewed on GitHub at the following address:
https://github.com/codebeatme/python/tree/master/src/en/command_line