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
可以使用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