查看python解释器安装路径

查看python解释器安装路径

在Windows下或Linux下的pycharm中进行查看:

示例代码:

import sys
print(sys.executable)

运行效果:

在Linux下用命令或在windows下的cmd命令中进行查看:

python2查看:

python3进行查看:

猜你喜欢

转载自blog.csdn.net/weixin_44799217/article/details/114046051