View python interpreter installation path
View in pycharm under Windows or Linux:
Sample code:
import sys
print(sys.executable)
running result:
Use the command under Linux or the cmd command under windows to view:
python2 view:
Python3 to view: