Distrobox separate home and user for python

Hey, Does anybody managed how to not mess own home directory, for example with python packages? I built my container with the command below:
distrobox create -i registry.fedoraproject.org/fedora-toolbox:latest --init --additional-packages "systemd" -n oreilly --home ~/dbx/oreilly
distrobox create -i registry.fedoraproject.org/fedora-toolbox:latest --init --additional-packages "systemd" -n oreilly --home ~/dbx/oreilly
But when I want to install any package via pip it tries to mess my host's home:
pip3 install requests
Traceback (most recent call last):
File "/home/bennek/.local/bin/pip3", line 5, in <module>
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'
pip3 install requests
Traceback (most recent call last):
File "/home/bennek/.local/bin/pip3", line 5, in <module>
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'
Does anybody know how to make my distrobox container to point to my created home?
1 Reply
Bennek
BennekOP2mo ago
After a little digging. Separate home directory using
--home
--home
flag suits my needs. I'm closing this post.
Want results from more Discord servers?
Add your server