- 🚀 AI-powered command correction
Fixes common pip/conda command typos (e.g. "pip istall" → "pip install") - 📦 Package name validation
Corrects common package name mistakes (e.g. "pytorch" → "torch") - 🌐 Mirror source management
Easy switching between PyPI mirrors (Tsinghua, Aliyun, etc.) - ✔️ Smart execution
Recognizes valid commands without unnecessary corrections - 🔍 Version checking
Supports various version query formats (e.g. "numpy -v")
- Python 3.7+
- ZhipuAI API key (free model)
pip install zhipuai
git clone https://github.com/AMTOPA/PipFixer.git
cd PipFixer
python main.pyFirst run will prompt for:
ZhipuAI API key:Apply for a free API key at Zhipu AI Platform:

Preferred package manager (pip/conda)
Mirror source configuration
Enter commands naturally:
pip >>> instal pytorch
Corrected: pip install torch
Confirm? [Y/n]: y
Special commands:change mirror # Switch PyPI mirror source
exit # Quit the program