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

it2023-04-09  75

ipython每次新打开都用不了之前的历史命令, 很不习惯, 于是抽时间解决了这个问题

/home/user/.local/share/virtualenvs/wanghai-jvDhItmI/lib/python3.8/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

sudo echo be careful to use root permission. cd softwares/Python-3.8.6 ./configure --enable-optimizations --enable-loadable-sqlite-extensions && make && sudo make altisntall

或直接安装最新版Python

wget https://gitee.com/waketzheng/carstino/raw/master/upgrade_py.py sudo echo Going to install python3.8 && python3 upgrade_py.py

 

最新回复(0)