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

Issue: Conda Environment Creation Taking Too Long #42

Open
Jeevan-Neupane opened this issue Mar 2, 2025 · 2 comments
Open

Issue: Conda Environment Creation Taking Too Long #42

Jeevan-Neupane opened this issue Mar 2, 2025 · 2 comments

Comments

@Jeevan-Neupane
Copy link
Contributor

Description

When trying to create a Conda environment using the benchmark-requirements-cpu.yaml file, the process gets stuck at "Solving environment" for an unusually long time and it doesn't get resolved.

Steps to Reproduce

Run the following command

conda env create --name xrayto3d --file benchmark-requirements-cpu.yaml

The process halts at:

Solving environment: \

It takes an excessive amount of time without proceeding and doesn't get solved.

@Jeevan-Neupane
Copy link
Contributor Author

It looks like the issue was caused by unnecessary GPU-related dependencies (pytorch-gpu, cudatoolkit=10.1, pytorch-cuda). Since this setup is running on CPU-only, Conda was struggling to resolve GPU-related packages that aren’t needed.

Updated benchmark-requirements-cpu.yaml (CPU-Only)

name: xrayto3d
channels:
  - conda-forge
  - defaults
dependencies:
  - python=3.8
  - numpy
  - monai
  - torchvision
  - nibabel
  - itk
  - simpleitk
  - scikit-image
  - pillow
  - pandas
  - matplotlib
  - pytorch  # CPU version (no GPU)
  - wandb
  - tqdm
  - einops
  - pytorch-lightning

Previous benchmark-requirements-cpu.yaml (With GPU Dependencies)

channels:
  - defaults
  - conda-forge
  - anaconda
dependencies:
  - python=3.8
  - numpy
  - monai
  - torchvision
  - nibabel
  - itk
  - simpleitk=2.0
  - scikit-image
  - pillow
  - pandas
  - matplotlib
  - pytorch-gpu  #  Unnecessary for CPU
  - cudatoolkit=10.1  # Causes dependency resolution issues
  - wandb
  - tqdm
  - einops
  - pytorch-lightning

@msrepo
Copy link
Collaborator

msrepo commented Mar 4, 2025

@Jeevan-Neupane Lets see if using mamba instead of conda speeds up conda env creation especially pulling the required dependencies. mamba is a like for like replacement of conda commands.

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

No branches or pull requests

2 participants