Skip to content

AMTOPA/PipFixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PipFixer: AI-Powered Command Correction

English | 简体中文

GitHub release License Python GLM


✨ Features

  • 🚀 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")

🖥️ Demo

Command Correction Demo


🛠️ Installation

Prerequisites

  • Python 3.7+
  • ZhipuAI API key (free model)

Quick Start

pip install zhipuai
git clone https://github.com/AMTOPA/PipFixer.git
cd PipFixer
python main.py

📚 Usage

First run will prompt for:

ZhipuAI API key:Apply for a free API key at Zhipu AI Platform: API Application

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

About

ai自动修正pip命令小工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published