pixi icon indicating copy to clipboard operation
pixi copied to clipboard

User should specify pypi version bounds to be able to solve together with conda packages

Open nichtmacho opened this issue 2 years ago • 2 comments

          I should say that with `pixi==0.29.0` (or maybe after some prior releases) things got better, thanks! Does this mean that the core reason behind the issue is gone, and in such pytorch-related scenarios users don't need to know about `conda-pypi-map` anymore? Or I just got lucky somehow? :)

Also, there are some smaller issues remaining. My setup:

pixi init torch-demo
cd torch-demo
pixi project channel add pytorch
pixi add python pytorch::pytorch

The good news is that the following command (installing a simple library with torch and numpy as the only dependencies) does not bring pypi::torch anymore:

pixi add delu --pypi

However, it does bring pypi::numpy (according to pixi list). To fix that, I run:

pixi add numpy

Which leads to an error (which is rather specific to my example). Should I always explicitly specify version bounds when the most recent version cannot be installed?

Error message × failed to solve the pypi requirements of 'default' 'osx-arm64' ├─▶ failed to resolve pypi dependencies ╰─▶ Because delu==0.0.25 depends on numpy>=1.18,<2 and numpy==2.1.1, we can conclude that delu==0.0.25 cannot be used. And because only delu<=0.0.25 is available and you require delu>=0.0.25, we can conclude that your requirements are unsatisfiable.

Then I run:

pixi add "numpy<2"

And the environment is ready!

Originally posted by @Yura52 in https://github.com/prefix-dev/pixi/issues/1537#issuecomment-2330183640

nichtmacho avatar Sep 13 '24 08:09 nichtmacho

created based on @Yura52 comment to keep track of it separated from mapping issues

nichtmacho avatar Sep 13 '24 08:09 nichtmacho

Linking it to already existing one: https://github.com/prefix-dev/pixi/issues/1784

nichtmacho avatar Sep 13 '24 08:09 nichtmacho