You are not logged in.

#1 2025-03-25 16:32:17

notadaughter
Member
Registered: 2024-04-08
Posts: 14

[SOLVED] Is it ok to install python packages per-user?

As arch wiki says, it is ok to install python packages per-user with `pip install --user`. However when i do so, i encounter `error: externally-managed-environment`

Last edited by notadaughter (2025-03-26 06:41:14)

Offline

#2 2025-03-25 16:56:11

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Is it ok to install python packages per-user?

you should use venvs


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2025-03-25 17:20:56

notadaughter
Member
Registered: 2024-04-08
Posts: 14

Re: [SOLVED] Is it ok to install python packages per-user?

I want to use gef-extras. However, it requires installing `retdec-python` which doesn't exist nor in official repository or AUR. Therefore i want to install it in user directory

Offline

#4 2025-03-25 22:46:13

teckk
Member
Registered: 2013-02-21
Posts: 579

Re: [SOLVED] Is it ok to install python packages per-user?

Put it all into one directory and use relative or from path imports to test it out.

https://github.com/hugsy/gef-extras
https://github.com/s3rvac/retdec-python

As long as python imports can find what it is looking for.

Offline

#5 2025-03-25 23:10:46

loqs
Member
Registered: 2014-03-06
Posts: 18,874

Re: [SOLVED] Is it ok to install python packages per-user?

retdec.com was shutdown making retdec-python none functional as the archived github repo teckk linked to states. Why not just remove retdec-python from  gef-extras  requirements.txt or ask gef-extras why it still requires it?

Offline

#6 2025-03-26 00:18:19

mackin_cheese
Member
Registered: 2025-01-07
Posts: 477

Re: [SOLVED] Is it ok to install python packages per-user?

the message that you received tells you exactly what you should be doing with user python packages

Offline

#7 2025-03-26 05:39:46

notadaughter
Member
Registered: 2024-04-08
Posts: 14

Re: [SOLVED] Is it ok to install python packages per-user?

yes, but i’m still curious why does the message appear if arch wiki allows installing packages per-user

mackin_cheese wrote:

the message that you received tells you exactly what you should be doing with user python packages

Offline

#8 2025-03-26 06:40:48

notadaughter
Member
Registered: 2024-04-08
Posts: 14

Re: [SOLVED] Is it ok to install python packages per-user?

thanks everyone, eventually i just didn't install retdec and everything works fine

Offline

Board footer

Powered by FluxBB