跳到正文
cccskills
免费在 GitHub 公开

uv-pip-install

Install and manage Python packages using uv pip. Use when a Python import fails with ModuleNotFoundError, user asks to install a package, or a script requires a missing dependency.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

uv-pip-install

Install and manage Python packages in the uv-managed virtual environment.

Quick start

# Install a package
uv pip install requests

# Install multiple packages
uv pip install pandas numpy matplotlib

# Install with extras
uv pip install httpx[http2]

# Check if a package is installed
uv pip show python-docx

# List all installed packages
uv pip list

# Upgrade a package
uv pip install --upgrade requests

When to use

  • Python import fails with ModuleNotFoundError
  • User asks to install a Python package
  • A script requires dependencies that are not installed

Common module-to-package mappings

Import namePackage name
cv2opencv-python
PILpillow
sklearnscikit-learn
yamlpyyaml
docxpython-docx
pptxpython-pptx
bs4beautifulsoup4
dotenvpython-dotenv
attrattrs
dateutilpython-dateutil
gipygobject
magicpython-magic
serialpyserial
usbpyusb
Cryptopycryptodome
jwtpyjwt
josepython-jose
lxmllxml
wxwxPython
giPyGObject
skimagescikit-image
fitzPyMuPDF
cvopencv-python
telegrampython-telegram-bot
discorddiscord.py
flask_corsflask-cors
sqlalchemySQLAlchemy
alembicalembic
pymongopymongo
redisredis
celerycelery
fastapifastapi
uvicornuvicorn
httpxhttpx
aiohttpaiohttp
websocketswebsockets
jinja2Jinja2
markdownifymarkdownify

Workflow

  1. If an import error occurs, extract the module name.
  2. Map module name to package name if different (see table above).
  3. Check if already installed: uv pip show <package>
  4. If not installed: uv pip install <package>

Troubleshooting

Common issues

ProblemSolution
uv: command not foundInstall uv: curl -LsSf https://astral.sh/uv/install.sh | sh
Package installs but import still failsCheck you're in the correct venv: which python
Version conflictPin version: uv pip install package==1.2.3
Build fails (C extension)Install system deps: brew install pkg-config (macOS)
SSL certificate erroruv pip install --trusted-host pypi.org package

Notes

  • Always run from the project directory so the correct .venv is used.
  • Use uv pip (not plain pip) to ensure packages go into the uv-managed environment.
  • For packages with C extensions, ensure build tools are installed (xcode-select --install on macOS).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Direct filesystem operations (read, write, edit, list, search files). Use for any file manipulation tasks.

中文简介正在准备中。当前显示原文说明。

Memento-Teams/Memento-Skills15762026年8月17日 更新

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

中文简介正在准备中。当前显示原文说明。

Memento-Teams/Memento-Skills15762026年8月17日 更新

Web search and content fetching. Use when the user needs to search the web for information or fetch content from URLs.

中文简介正在准备中。当前显示原文说明。

Memento-Teams/Memento-Skills15762026年8月17日 更新

查看 Memento-Teams 的全部技能

报告此技能的问题