linux下ipython無法保存歷史記錄
在Centos7下使用ipython時,發現有個warning,提示無法保存歷史記錄
[[email protected] 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正常
[[email protected]
Centos7中安裝python3.6:http://www.cnblogs.com/chengd/p/7078498.html
Centos7中安裝ipython:http://www.cnblogs.com/chengd/p/7078639.html
linux下ipython無法保存歷史記錄