Closed mht2953658596 closed 2 months ago
I used Micromamba on Windows to create a virtual environment and then exported this environment to a YAML file. When I tried to reproduce this environment on Linux using the YAML file, it didn't work because the YAML file specifies platform-specific builds for each package. Can Pixi reproduce the same environment across different platforms using the TOML file?
@tdejager So, by simply setting the platforms attribute under the [project] section in the TOML file to ["win-64", "linux-64", "osx-64", "osx-arm64"], will running pixi install on the Linux platform automatically install the specified versions of the libraries that were installed on the Windows platform?
So it really depends on the libaries, but if they are all availab le for all platforms then yes. Of course things like cuda and such make this a bit more difficult.
I'm closing this, feel free to open a specific issue when things are not working out as you expected! :)
Problem description
I have a project that I initially built on a Windows machine using
pixi
, which generated apixi.toml
file. Now, I want to know if it is possible to reconstruct the environment on a Linux machine using the samepixi.toml
file. Steps to Reproduce:pixi
to generate apixi.toml
file.pixi.toml
file to a Linux machine.pixi install
on the Linux machine to reconstruct the environment.Expected Behavior: The environment should be successfully reconstructed on Linux using the
pixi.toml
file from the Windows machine.Actual Behavior: (Please fill in if you have already tried this process and encountered issues)
Additional Context: Are there any platform-specific considerations that I should be aware of when using
pixi
to generate atoml
file on Windows and reconstructing the environment on Linux?