查看当前 运行哪个python

Jupyter Notebook 中查看当前 运行哪个python

可以使用sys.executable 查看路径, 如下:

import sys

print sys.executable

这样我们知道当前python路径为/usr/bin/python 了

https://cloud.tencent.com/developer/news/320850

https://cloud.tencent.com/developer/news/314065

发布了54 篇原创文章 · 获赞 44 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/txpp520/article/details/104046155