Skip to content
Discussion options

You must be logged in to vote

@Hofer-Julian points out in Discord that pixi upgrade does this.

Example:

$ pixi init example
$ cd example
$ pixi add --feature cpu pytorch-cpu
$ pixi workspace environment add --feature cpu cpu
$ pixi upgrade --feature cpu pytorch-cpu

resolves as

[workspace]
channels = ["conda-forge"]
name = "example"
platforms = ["linux-64"]
version = "0.1.0"

[tasks]

[dependencies]

[feature.cpu.dependencies]
pytorch-cpu = ">=1.6.0,<2"

[environments]
cpu = ["cpu"]

Calling upgrade at the end seems slightly unintuitive, but I guess that's force things to be resolved by asking it to upgrade given that pixi upgrade

Checks if there are …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matthewfeickert
Comment options

Answer selected by matthewfeickert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant