当前位置:首页 > 云计算 > 正文内容

怎样查看jupyter中的python环境?

2022-05-04 03:17:42云计算3

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

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

importsys
print(sys.version)
print(sys.executable)

>>3.6.0(default,Oct162018,15:45:51)
[GCC5.4.020160609]
>>/usr/local/bin/python3.6

jupyter切换当前python版本

%%python2
importsys
print(sys.version)

>>2.7.12(default,Dec42017,14:50:18)
[GCC5.4.020160609]

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

本网站文章仅供交流学习 ,不作为商用, 版权归属原作者,部分文章推送时未能及时与原作者取得联系,若来源标注错误或侵犯到您的权益烦请告知,我们将立即删除.

本文链接:https://www.xibujisuan.cn/11972.html

标签: Python