源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Linux下安装IPython配置python开发环境教程

  • 时间:2022-07-18 00:23 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Linux下安装IPython配置python开发环境教程
[b]一.IPython简介[/b] IPython 是一个交互式的shell,比默认终端好用,支持自动缩进,并且内置了很多有用的功能和函数。可以在任何操作系统上使用。 [b]二.安装方法[/b] [b]1.pip 在线安装[/b] pip install ipython pip install “ipython[notebook]” [b]2.下载安装[/b] 可以到GitHub 下载安装包,切换到目录下然后运行下面的脚本 Python setup.py install [b]三.简单使用[/b] 打开Linux终端,在命令行中输入 root@Linux:/# ipython 便会进入ipython 的交互式shell,并会显示 ipython 的一些信息,在In [1]: 便可以输入python的代码
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
Type “copyright”, “credits” or “license” for more information. 
IPython 4.0.0 – An enhanced Interactive Python. 
? -> Introduction and overview of IPython's features. 
%quickref -> Quick reference. 
help -> Python's own help system. 
object? -> Details about ‘object', use ‘object??' for extra details. 
In [1]: (此处输入代码)
比如打印”hello ipython”,输入下列代码
In [1]: print (‘hello ipython') 
hello ipython 
In [2]:
到此Linux环境安装IPython配置python开发环境就弄好了,如果要在windows下配置开发环境,需要先安装Anaconda,这是一种安装管理的程序,使用它可以很方便的完成Python 的升级操作,并且自带了很多的Python 库。 以上就是本文的全部内容,希望对大家的学习有所帮助。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部