Skip to main content

conda-pypi

conda-pypi logo

Better PyPI interoperability for the conda ecosystem.

[!IMPORTANT] This project is still in early stages of development. Don't use it in production (yet). We do welcome feedback on what the expected behaviour should have been if something doesn't work!

Project Status

This is a community-maintained project under the conda organization.

Getting Help

What is this?

The conda-pypi plugin improves conda's integration with the PyPI ecosystem. The most important feature is the conda-pypi channel, hosted by Anaconda, which makes pure Python pacakges from PyPi available to users natively through conda install.

Using conda-pypi

conda-pypi is available in conda 26.5 or later. To update:

conda install --name base "conda>=26.5"

To opt in, enable the Rattler solver and add the conda-pypi channel:

conda config --set solver rattler
conda config --append channels conda-pypi

During the beta, the conda-pypi channel might not appear in the Anaconda.org web UI and some commands such as conda search can fail because they request classic repodata.json metadata. Use conda install or conda create --dry-run to check whether the solver can use the channel.

After configuring, you can use PyPI packages alongside conda packages in your normal conda workflows, without needing to convert PyPI's wheel files to conda files.

Advanced options

conda-pypi includes more advanced subcommand controls for working with PyPI packages. These options are recommended for users who want to experiment with conda and wheels and work with cutting-edge plugin features.

You can use the following commands with the conda pypi subcommand to do more with the conda-pypi plugin:

  • conda pypi install: Converts PyPI packages to .conda format for safer installation.
  • conda pypi install -e .: Converts a path to an editable .conda format package.
  • conda pypi convert: Convert PyPI packages to .conda format without installing them.
  • conda pypi index: Index a local directory of .whl files to create a local conda channel.
  • conda install from wheel channels (experimental): channels can serve pure Python wheels directly in repodata.json.
  • A warning when running conda create or conda install with pip in the environment.

Why?

Mixing conda and PyPI is often discouraged in the conda ecosystem. There are only a handful patterns that are safe to run. This tool aims to provide a safer way of keeping your conda environments functional while mixing it with PyPI dependencies. Refer to the documentation for more details.

Attribution

  • This project now incorporates conda-pupa by Daniel Holth, which provides the core PyPI-to-conda conversion functionality.
  • The conda-pypi platypus logo is by James Turner.

Contributing

Please refer to CONTRIBUTING.md.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conda_pypi-0.11.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conda_pypi-0.11.0-py3-none-any.whl (251.7 kB view details)

Uploaded Python 3

File details

Details for the file conda_pypi-0.11.0.tar.gz.

File metadata

  • Download URL: conda_pypi-0.11.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for conda_pypi-0.11.0.tar.gz
Algorithm Hash digest
SHA256 9137327ffef74aaac7a95e5940b39e4bc333c77f05d22efeb199af6767e3b481
MD5 d9fba31b1abb9074ce1306b9cb68de87
BLAKE2b-256 9df767caa93dcb6ea8a0dd5fda0ed5237353d790e3bf50aff4e299e77e486b2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_pypi-0.11.0.tar.gz:

Publisher: pypi.yml on conda/conda-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file conda_pypi-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: conda_pypi-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 251.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for conda_pypi-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b80ada451aecdf0d0f9f64d831ebb8af85de3e83723989026f269630c148fcd2
MD5 dd31d541d2546fdb871e2aa71e9ed98a
BLAKE2b-256 ff9c83cab1e1bd11fabb078766768a540af0efb384a51a3a136de7cc3e8081d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_pypi-0.11.0-py3-none-any.whl:

Publisher: pypi.yml on conda/conda-pypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page