View python interpreter installation path

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:

Guess you like

Origin blog.csdn.net/weixin_44799217/article/details/114046051