Python 3安裝IPython過程分享
導讀 | 記錄在 7.5下Python 3安裝IPython的過程,希望對大家有所幫助。 |
一、透過壓縮包安裝ipython
1、下載IPython安裝包
$ wget
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,
#
安裝Python3 見 : http://www.cnblogs.com/chengd/p/7078498.html
3、透過pip安裝ipython所有缺失模組,直至ipython執行成功
[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'
#執行ipython是提示缺少'traitlets'模組;
#安裝提示一步步透過pip安裝缺失模組
[root@localhost ipython]# pip install 'traitlets' Collecting traitlets Downloading (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 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 (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
二、直接透過pip安裝ipython
pip安裝地址: idc.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安裝成功
原文來自:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69955379/viewspace-2687541/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Python 庫/模組的pip安裝和IPython的使用Python
- pyenv、ipython、jupyter的安裝使用Python
- 記錄NLTK安裝使用全過程--pythonPython
- Centos5.5中安裝Mysql5.5過程分享CentOSMySql
- selenium安裝過程
- Python安裝教程分享Python
- IPython的安裝及問題解決Python
- webpack的安裝過程Web
- 【一】TYPORA安裝過程
- 安裝wampserver的過程Server
- Tigase手動安裝過程
- RabbitMQ安裝過程詳解MQ
- 原始碼包安裝過程原始碼
- brew 安裝python3:如何使用brew安裝Python3Python
- Python 3安裝MySQLdbPythonMySql
- Python 3安裝wxPythonPython
- 分享在Linux上安裝PythonLinuxPython
- windows7安裝redis過程WindowsRedis
- VisualStudio(Mac)安裝過程筆記Mac筆記
- linux安裝python3(原始碼安裝)LinuxPython原始碼
- Oracle 18c rpm 安裝及解析安裝過程Oracle
- python3.* windows安裝PythonWindows
- Linux安裝Python3LinuxPython
- CentOS 安裝Python3CentOSPython
- centOS安裝python3CentOSPython
- mac安裝python3MacPython
- python詳細的安裝教程分享!Python
- Visual Studio 2010詳細安裝過程
- mysql5.7.23安裝詳細過程MySql
- 使用pip安裝selenium過程筆記筆記
- Ubuntu 16.04 安裝 MySQL 8.0 全過程UbuntuMySql
- nuxtjs 安裝過程中出現問題UXJS
- CentOS7下PostgreSQL安裝過程CentOSSQL
- 秒搞VirtualBox 、CentOS 的安裝過程CentOS
- android apk安裝過程原始碼解析AndroidAPK原始碼
- redhat 5.4下安裝MYSQL全過程RedhatMySql
- ubuntu 12.10 php55安裝過程UbuntuPHP
- Python直譯器和IPythonPython