网上没啥教程,其实很简单,也是找了很久才找到的:
python -m pip install pyreadline
不能直接用pip install pyreadline
pip install pyreadline