mamba-org / micromamba-releases

Micromamba executables mirrored from conda-forge as Github releases
60 stars 18 forks source link

Creating a local environment using environment file with pip dependencies fails with errors #39

Open jasonboukheir opened 8 months ago

jasonboukheir commented 8 months ago

Here is my environment.yml file:

name:
channels:
  - conda-forge
  - pytorch
  - nvidia
dependencies:
  - python >= 3.8, <3.9
  - pytorch
  - pytorch-cuda=11.8
  - torchvision
  - pip
  - pip:
      - ultralytics
      - pillow
      - numpy
      - pandas
      - git+https://github.com/openai/CLIP.git

When running the following command:

micromamba env create -f environment.yml -p ./.conda

it fails with

Installing pip packages: ultralytics, pillow, numpy, pandas, git+https://github.com/openai/CLIP.git critical libmamba Cannot activate, prefix does not exist at: '{ SNIP }\micromambaenv\envs.conda' critical libmamba pip failed to install packages

It seems to be trying to find an environment called .conda instead of using the environment I have locally in my project.

I'm using micromamba version 1.5.6 on windows.

amgcc commented 1 month ago

I'm having the same problem - providing an absolute path fixes the issue though it would be best if the tool could accept any path.