查看python解释器安装路径 在Windows下或Linux下的pycharm中进行查看: 示例代码: import sys print(sys.executable) 运行效果: 在Linux下用命令或在windows下的cmd命令中进行查看: python2查看: python3进行查看: