查看当前使用的python的安装路径

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/caicaiatnbu/article/details/86506426

如题,解决方案如下:

import sys
pythonpath = sys.executable
print(pythonpath)

猜你喜欢

转载自blog.csdn.net/caicaiatnbu/article/details/86506426