Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micromamba ignores pip dependencies from new lockfiles #1900

Closed
maresb opened this issue Sep 3, 2022 · 0 comments · Fixed by #1908
Closed

Micromamba ignores pip dependencies from new lockfiles #1900

maresb opened this issue Sep 3, 2022 · 0 comments · Fixed by #1908

Comments

@maresb
Copy link
Contributor

maresb commented Sep 3, 2022

The new lockfile format allows for the installation of PyPI packages corresponding to the - pip [...] section of environment.yml. However, it seems that this is not yet supported by micromamba.

To reproduce, create environment.yml:

name: test-pip-deps
channels:
- conda-forge
dependencies:
- pip
- pip:
  - cowsay
platforms:
- linux-64

and generate a new-style lockfile conda-lock.yml by running

conda-lock

Create an environment via conda-lock, and it works:

conda-lock install --name conda-lock-pip-deps conda-lock.yml
micromamba activate conda-lock-pip-deps
cowsay moo
micromamba deactivate

Try with micromamba, and it doesn't work:

micromamba create --yes --name micromamba-pip-deps --file conda-lock.yml
micromamba activate micromamba-pip-deps
cowsay moo
micromamba deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant