ipython
# common
pip uninstall ipythonpip install ipython
# 修改 python 版本号
修改脚本第一行指定的 python 链接。 如下
-> % cat /usr/local/bin/ipython
#!$HOME/.pyenv/shims/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
上次更新: 2025/10/09, 23:53:03