linux下ipython無法保存歷史記錄


在Centos7下使用ipython時,發現有個warning,提示無法保存歷史記錄

[root@localhost pip-9.0.1]# ipython
/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]: 

解決方法:在編譯python3時,沒有安裝sqlite-devel;所以會發出此警告。yum安裝sqlite-devel后重新編譯安裝python3即可解決

#安裝sqlite-devel后重新編譯安裝python3,ipython正常
[root@localhost Python-3.6.1]# ipython
Python 3.6.1 (default, Jun 26 2017, 10:18:59) 
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: 

Centos7中安裝python3.6:http://www.cnblogs.com/chengd/p/7078498.html

Centos7中安裝ipython:http://www.cnblogs.com/chengd/p/7078639.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM