原因:安装的 Python 3,其命令名称默认是 python3 和 pip3。 解决方案:设置命令别名 (Alias) # 在文件末尾添加以下行 alias python='python3' alias pip='pip3'