查看jupyter中的python环境的方法:(推荐:jupyter使用教程)
jupyter中查看当前python环境的方法:
import <a href="https://www.gaodaima.com/tag/sys" title="查看更多关于sys的文章" target="_blank">sys</a> 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
www#gaodaima.com来源gaodaimacom搞#^代%!码&网搞代码
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教程。
来源:搞代码网:原文地址:https://www.gaodaima.com