conda pypi install#
Install PyPI packages as conda packages
usage: conda pypi install [-h] [--ignore-channels] [-i INDEX_URLS] [--json]
[--console CONSOLE] [-v] [-q] [-d] [-y] [-p PREFIX]
[-e PROJECT_PATH]
[PACKAGE ...]
Positional Arguments#
- PACKAGE
PyPI packages to install
Named Arguments#
- --ignore-channels
Do not search default or .condarc channels. Will search PyPI.
- -i, --index-url
Add a PyPI index URL (can be used multiple times).
- -p, --prefix
Full path to environment location (i.e. prefix).
- -e, --editable
Build and install PROJECT_PATH in editable mode using PEP 660. Can be used multiple times.
Output, Prompt, and Flow Control Options#
- --json
Report all output as json. Suitable for using conda programmatically.
- --console
Select the backend to use for normal output rendering.
- -v, --verbose
Can be used multiple times. Once for detailed output, twice for INFO logging, thrice for DEBUG logging, four times for TRACE logging.
- -q, --quiet
Do not display progress bar.
- -d, --dry-run
Only display what would have been done.
- -y, --yes
Sets any confirmation values to ‘yes’ automatically. Users will not be asked to confirm any adding, deleting, backups, etc.
Install PyPI packages as conda packages. Any dependencies that are available on the configured conda channels will be installed with conda, while the rest will be converted to conda packages from PyPI.
Examples:
Install a single PyPI package into the current conda environment:
conda pypi install requests
Install multiple PyPI packages with specific versions:
conda pypi install "numpy>=1.20" "pandas==1.5.0"
Install packages into a specific conda environment:
conda pypi install -n myenv flask django
Install packages using only PyPI (skip configured conda channels):
conda pypi install --ignore-channels fastapi
Install packages from an alternative package index URL:
conda pypi install --index-url https://example.com/simple fastapi
Install a local project in editable mode:
conda pypi install -e ./my-project
Install the current directory in editable mode:
conda pypi install -e .