python查看安装路径

方法1:在环境变量中查看有哪些默认的路径

import sys
print(sys.path)

方法2:查看可执行文件的位置

print(sys.executable)

你可能感兴趣的:(python查看安装路径)