運行ipython后顯示WARNING: IPython History requires SQLite, your history will not be saved


在CentOS6.5下將自帶的python2.6升級到python2.7,並安裝了ipython,啟動ipython后顯示如下信息:

WARNING: IPython History requires SQLite, your history will not be saved

解決方法如下:

  1. 下載並解壓sqlite包,輸入命令:
    #wget http://www.sqlite.org/sqlite-autoconf-3071401.tar.gz
    #tar zxvf sqlite-autoconf-3071401.tar.gz
  2. 在sqlite-autoconf-3071401目錄下配置、編譯、安裝,輸入命令:
    #./configure --prefix=/usr/local/
    #make
    #make install
  3. 重新編譯安裝python2.7,輸入命令:
    #cd Python-2.7.3
    #./configure 
    #make all
    #make install
    #make clean
    #make distclean
  4. 重新啟動ipython查看信息
    #ipython

###完成以上步驟之后即可解決上述問題###

參考資料:

1、http://blog.chinaunix.net/uid-22476414-id-3401048.html

2、http://www.hztarena.net/qianrushipeixun/2012/1214/2501.html

 


免責聲明!

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



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