Packing pixi environments for the Raspberry Pi #467
stephane-caron
started this conversation in
Tips and tricks
Replies: 1 comment
-
Since 0.3.0, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you have configured your Upkie as a Wi-Fi access point, chances are, you have already faced the issue of installing conda packages without an Internet connection. One solution is to connect to the Internet via a separate Wi-Fi dongle, but it will become tedious if the need arises too often. In what follows, we propose a way to use the Internet connection of your host computer instead.
Using pixi and pixi-pack
We use pixi and a tool called
pixi-pack
to export pixi environments to Upkie. If you don't have it yet, you can install pixi from here.First, we will want to create an
environment.tar
file. Define apack-to-upkie
task as done for instance in thepyproject.toml
of the PPO balancer, then run the following command:Once the file is created, upload it to your Upkie and unpack it by:
If
pixi-pack
is not installed on your Upkie, you can get apixi-pack-aarch64-unknown-linux-gnu
binary from the pixi-pack release page. Finally, activate the environment and run the agent:source ./activate.sh python ppo_balancer/run.py
See also
pixi-pack
is much better)Beta Was this translation helpful? Give feedback.
All reactions