conda pypi install#
Install Python distribution packages as conda packages
usage: conda pypi install [-h] [--ignore-channels] [-i INDEX_URLS] [--json]
[--console {classic,json}] [-v] [-q] [-d] [-y]
[-p PREFIX | -n NAME] [-e PROJECT_PATH]
[PACKAGE ...]
Positional Arguments#
- PACKAGE
Python distribution packages to install
Named Arguments#
- --ignore-channels
Do not search default or .condarc channels. Will search the configured package indexes.
- -i, --index-url
Package index URL to use instead of PyPI (can be used multiple times).
- -p, --prefix
Full path to environment location (i.e. prefix).
- -n, --name
Name of the conda environment.
- -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
Possible choices: classic, json
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 Python distribution packages as conda packages. Dependencies that are available on the configured conda channels will be installed with conda, while missing wheels will be fetched from the configured package indexes and converted to conda packages. PyPI is the default index.
Examples:
Install a single Python distribution package into the current conda environment:
conda pypi install requests
Install multiple 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 without searching 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 .