• 技术文章 >常用工具 >Jupyter

    怎样查看jupyter中的python环境?

    yangyang2020-02-10 12:11:03原创10233

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

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

    1

    2

    3

    4

    5

    6

    7

    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版本

    1

    2

    3

    4

    5

    6

    %% python2

    import sys

    print(sys.version)

     

    >>2.7.12 (default, Dec  4 2017, 14:50:18)

    [GCC 5.4.0 20160609]

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

    专题推荐:jupyter
    上一篇:怎么放大jupyter的字体? 下一篇:怎么中断jupyter的运行?

    相关文章推荐

    • 怎么运行jupyter notebook?

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网