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

前端 未结 5 1250
小蘑菇
小蘑菇 2021-01-31 20:54

Hi I\'m using Ubuntu release 12.10 (quantal) 32-bit with Linux Kernel 3.5.0-21-generic. I\'m trying to get IPython\'s History to work. I\'ve set it up using pythonbrew and a vir

5条回答
  •  执念已碎
    2021-01-31 21:53

    You should rebuild your python with sqlite support

    sudo apt-get install libsqlite3-dev
    wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
    tar -xvf Python-2.7.15.tgz
    cd Python-2.7.15
    ./configure
    make
    sudo make install
    

    Recreate your virtual environment and you should be good to go

    rmvirtualenv venv
    mkvirtualenv -p python2 venv
    workon venv
    pip install -r requirements.txt
    # or
    pip install ipython
    

提交回复
热议问题