Loading...
Loading...
Ensures proper Python dependency management, avoiding global `pip install` and adhering to project-specific tooling. Use this skill if any of the following are true: 1. Attempting to run `pip install {package_name}`. 2. Python packages or dependencies need to be added or modified. 3. Initiating a new Python project. 4. Creating a new notebook, even if just using BigQuery cells. 5. Generating Python code that includes `import` statements for third-party libraries. 6. Before executing Python scripts via the terminal to ensure the correct virtual environment is active.
npx skill4agent add gemini-cli-extensions/data-agent-kit-starter-pack managing-python-dependencies[!CAUTION] BEFORE any: You MUST first detect the project's existing dependency manager and use it correctly. Do NOT override the project's established tooling.pip install
uv.lockpyproject.toml[tool.uv]uv add <package>uv syncpyproject.toml[tool.poetry]poetry add <package>poetry installPipfilepipenv install <package>pipenv installenvironment.ymlconda install <package>conda env create -f environment.ymlrequirements.txt.venv/bin/pip install <package>.venv/bin/pip install -r requirements.txt.venv/bin/pip install <package>.venv/bin/pip install -r requirements.txt# Initialize environment
python3 -m venv .venv
# Add dependencies
.venv/bin/pip install <package>
# Preserve state
.venv/bin/pip freeze > requirements.txt.venv/bin/pip.venv/bin/python.venv/bin/pip freeze > requirements.txt.venv/bin/pip install -r requirements.txtpip install