- 🚀 AI智能命令修正
自动修正常见pip/conda命令错误(如"pip istall" → "pip install") - 📦 包名验证
修正常见包名错误(如"pytorch" → "torch") - 🌐 镜像源管理
一键切换清华、阿里云等PyPI镜像源 - ✔️ 智能执行
识别有效命令,避免不必要的修正 - 🔍 版本查询
支持多种版本查询格式(如"numpy -v")
- Python 3.7+
- 智谱AI API密钥(有免费模型)
pip install zhipuai
git clone https://github.com/AMTOPA/PipFixer.git
cd PipFixer
python main.py首次运行将提示配置:
输入智谱AI API密钥:Apply for a free API key at Zhipu AI Platform:

选择默认包管理器(pip/conda)
配置镜像源
自然输入命令:
pip >>> instal pytorch
修正结果: pip install torch
确认执行? [Y/n]: y
特殊命令:change mirror # 切换镜像源
exit # 退出程序