您现在的位置是:课程教程文章

怎样查看jupyter中的python环境?

2023-12-18 20:05课程教程文章 人已围观

查看jupyter中的python环境的方法:(推荐:jupyter使用教程)

jupyter中查看当前python环境的方法:

import sys
print(sys.version)
print(sys.executable)

>>3.6.0 (default, Oct 16 2018, 15:45:51) 
[GCC 5.4.0 20160609]
>>/usr/local/bin/python3.6

 jupyter切换当前python版本

%% python2
import sys
print(sys.version)

>>2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609]

更多python知识请关注python视频教程。

课程教程:怎样查看jupyter中的python环境?

上一篇:如何获取当前运行python文件路径

下一篇:没有了

站点信息

  • 文章统计篇文章