久久久精品一区ed2k-女人被男人叉到高潮的视频-中文字幕乱码一区久久麻豆樱花-俄罗斯熟妇真实视频

Python3安裝IPython過程分享

導(dǎo)讀 記錄在 CentOS 7.5下Python 3安裝IPython的過程,希望對大家有所幫助。

Python 3安裝IPython過程分享

創(chuàng)新互聯(lián)公司主營七臺河網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,重慶App定制開發(fā),七臺河h5微信平臺小程序開發(fā)搭建,七臺河網(wǎng)站營銷推廣歡迎七臺河等地區(qū)企業(yè)咨詢

一、通過壓縮包安裝ipython
1、下載IPython安裝包
$ wget https://files.pythonhosted.org/packages/82/0a/146b0f0f1ddf13ab8682aed5c5a42250cddf1082e193ec95b50b03b9f791/ipython-7.3.0.tar.gz
2、安裝IPython
[root@localhost ~]# tar xf ipython-7.3.0.tar.gz
[root@localhost ~]# cd ipython-7.3.0
[root@localhost ipython-7.3.0]# pwd
/root/ipython-7.3.0
[root@localhost ipython-7.3.0]# python3 setup.py install

#前提已安裝python3,
# Linux系統(tǒng)安裝Python3 見 : http://www.cnblogs.com/chengd/p/7078498.html

3、通過pip安裝ipython所有缺失模塊,直至ipython運(yùn)行成功
[root@localhost ipython]# ipython
Traceback (most recent call last):
  File "/usr/local/bin/ipython", line 4, in <module>
    from IPython import start_ipython
  File "/usr/local/lib/python3.7/site-packages/IPython/__init__.py", line 54, in <module>
    from .core.application import Application
  File "/usr/local/lib/python3.7/site-packages/IPython/core/application.py", line 23, in <module>
    from traitlets.config.application import Application, catch_config_error
ModuleNotFoundError: No module named 'traitlets'

#運(yùn)行ipython是提示缺少'traitlets'模塊;
#安裝提示一步步通過pip安裝缺失模塊

[root@localhost ipython]# pip install 'traitlets'
Collecting traitlets
  Downloading https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl (74kB)
    100% |████████████████████████████████| 81kB 100kB/s 
Requirement already satisfied (use --upgrade to upgrade): enum34; python_version == "2.7" in /usr/lib/python2.7/site-packages (from traitlets)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/site-packages (from traitlets)
Collecting ipython-genutils (from traitlets)
  Downloading https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): decorator in /usr/lib/python2.7/site-packages (from traitlets)
Installing collected packages: ipython-genutils, traitlets
Successfully installed ipython-genutils-0.2.0 traitlets-4.3.2
You are using pip version 8.1.2, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

升級pip

[root@localhost ipython]# pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl (1.4MB)
    68% |█████████████████████▉          | 921kB 8.5kB/s eta 0:00:51
    100% |████████████████████████████████| 1.4MB 73kB/s 
Installing collected packages: pip
  Found existing installation: pip 8.1.2
    Uninstalling pip-8.1.2:
      Successfully uninstalled pip-8.1.2
Successfully installed pip-19.0.3

Python 3安裝IPython過程分享

二、直接通過pip安裝ipython

pip安裝地址:https://www. linuxidc.com/Linux/2019-02/157062.htm

[root@localhost pip-9.0.1]# pip install ipython
[root@localhost pip-9.0.1]# ipython
ipython  ipython3  
[root@localhost 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 information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: 
#ipython安裝成功

原文來自:  https://www.linuxprobe.com/python-ipython-share.html

網(wǎng)站欄目:Python3安裝IPython過程分享
網(wǎng)頁網(wǎng)址:http://sd-ha.com/article36/gcjspg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制開發(fā)、用戶體驗、App開發(fā)、網(wǎng)站策劃小程序開發(fā)、營銷型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

綿陽服務(wù)器托管