How to view the python installation directory in Linux: 1. Execute the "whereis python" command in the terminal, and you can view all python installation directories in the output information; 2. Execute the "which python" command in the terminal , you can view the currently used python installation directory.
The operating environment of this tutorial: Ubuntu 16.04 system, Dell G3 computer.
Linux method to view the python installation directory
Method 1: Execute the whereis python
command in the terminal
You can view the paths of all python
Method 2: Execute which python## in the terminal #Command
Expand knowledge: view the python version
Use directlypythoncommand
Linux Video Tutorial"
The above is the detailed content of How to check the python installation directory in Linux. For more information, please follow other related articles on the PHP Chinese website!