Centos7下python3安装ipython,python3ipython,一、通过压缩包安装i
Centos7下python3安装ipython,python3ipython,一、通过压缩包安装i
一、通过压缩包安装ipython
1、下载ipython安装包
[[email protected] ~]# wget https://pypi.python.org/packages/79/63/b671fc2bf0051739e87a7478a207bbeb45cfae3c328d38ccdd063d9e0074/ipython-6.1.0.tar.gz#md5=1e15e1ce3f3f722da6935d7ac0e51346
2、安装ipython
[[email protected] ~]# tar xf ipython-6.1.0.tar.gz[[email protected] ~]# cd ipython-6.1.0[[email protected] ipython-6.1.0]# pwd/root/ipython-6.1.0[[email protected] ipython-6.1.0]# python3 setup.py install#前提已安装python3,#linux系统安装python3: http://www.cnblogs.com/chengd/p/7078498.html
3、通过pip安装ipython所有缺失模块,直至ipython运行成功
[[email protected] ~]# ipythonTraceback (most recent call last): File "/usr/local/bin/ipython", line 4, in <module> from IPython import start_ipython File "/usr/local/lib/python3.6/site-packages/IPython/__init__.py", line 54, in <module> from .core.application import Application File "/usr/local/lib/python3.6/site-packages/IPython/core/application.py", line 23, in <module> from traitlets.config.application import Application, catch_config_errorModuleNotFoundError: No module named ‘traitlets‘#运行ipython是提示缺少‘traitlets‘模块;#安装提示一步步通过pip安装缺失模块[[email protected] ~]# pip install ‘traitlets‘Collecting traitlets Downloading traitlets-4.3.2-py2.py3-none-any.whl (74kB) 100% |?..?..?..?..?..?..?..?..?..?..?..?..?..?..?..?..| 81kB 87kB/s Collecting six (from traitlets) Downloading six-1.10.0-py2.py3-none-any.whlCollecting ipython-genutils (from traitlets) Downloading ipython_genutils-0.2.0-py2.py3-none-any.whlCollecting decorator (from traitlets) Downloading decorator-4.0.11-py2.py3-none-any.whlInstalling collected packages: six, ipython-genutils, decorator, traitletsSuccessfully installed decorator-4.0.11 ipython-genutils-0.2.0 six-1.10.0 traitlets-4.3.2
......
二、直接通过pip安装ipython
pip安装地址:http://www.cnblogs.com/chengd/p/7078588.html
[[email protected] pip-9.0.1]# pip install ipython[[email protected] pip-9.0.1]# ipythonipython ipython3 [[email protected] pip-9.0.1]# ipython3/usr/local/lib/python3.6/site-packages/IPython/core/history.py:226: UserWarning: IPython History requires SQLite, your history will not be saved warn("IPython History requires SQLite, your history will not be saved")Python 3.6.1 (default, Jun 26 2017, 09:16:04) Type ‘copyright‘, ‘credits‘ or ‘license‘ for more informationIPython 6.1.0 -- An enhanced Interactive Python. Type ‘?‘ for help.In [1]:
#ipython安装成功
Centos7下python3安装ipython
相关内容
- Python:GUI之tkinter学习笔记1控件的介绍及使用,pythontki
- python实例:三国演义TXT文本词频分析,,0x00 前言找不到
- Python实践练习:电话号码和 E-mail 地址提取程序,,题目
- Python验证码识别 安装Pillow、tesseract-ocr与pytesseract模块的
- 解决安装虚拟环境出现的问题(OSError: Command /home/pyth
- Python - def 函数,pythondef函数,1.def 函数如果
- Python-OpenCV —— 基本操作详解,,OpenCV是一个基
- Python3安装geohash,,Geohash是一个
- 升级python2.6.6到python2.7导致pip命令不可用,,服务器环境
- python 创建虚拟环境时报错OSError, setuptools下载失败,,错
评论关闭