Home >Backend Development >Python Tutorial >How to check the installation path of python?
How to check the python installation path:
1. How to check python2:
import sys print sys.path
2. How to view python3:
import sys print (sys.path)
Example:
Open our cmd command
First Enter the command Python
, then enter the command import sys
, and finally enter the command print(sys.path)
The fourth command in the list Is your installation path
Related learning recommendations: python video
The above is the detailed content of How to check the installation path of python?. For more information, please follow other related articles on the PHP Chinese website!