#i am new to linux, can some one help me understand why i am having trouble installing pip3 stuff?

82 messages · Page 1 of 1 (latest)

formal moat
#

i am new to linux, can some one help me understand why i am having trouble installing pip3 stuff?

fierce finch
formal moat
#

sorry

fierce finch
#

you can install a lot of pip libraries using apt. try apt search <name>

formal moat
#

it says something about externally managed environment

fierce finch
formal moat
#

like: pip3 install-r requirements.txt

#

it fails

#

how would i exec that in apt

#

under python3

#

or dont i use python3

#

the error was saying to use python3

fierce finch
fierce finch
formal moat
#

i dont understand

fierce finch
formal moat
#

of what?

#

i need to run pip3 install-r requirements.txt

#

that wont work

#

you said use apt, i dont know how

formal moat
#

?

lofty pumice
#

Not pip3

#

Or better yet use uv tool

formal moat
#

?

#

its the same error with PIP... externally managed enviroment

lofty pumice
#

Try that

formal moat
#

UV?

lofty pumice
#

Yes uv is better pip lol

#

That's what i like to call it

#

If the 2nd command didn't work, try
uv pip install -r requirements.txt

#

And make sure u r in the PATH

#

@formal moat u good?

formal moat
#

i was looking to gwt it working with normal function not UV

lofty pumice
#

Uv, pip, pipx

#

All is python

#

pip handles environment like sht, pipx handle it better

#

Uv is better

#

I actually want to know what u r trying to do

#

Idk how, why and what u r going to accomplish. It will be better if you can provide me/us some info

formal moat
#

i just want to understand why PIP3 is not working like the install says

#

i need to run pip3 install-r requirements.txt

#

but it fails and says "this is an externally managed environment"

#

its happened with out stuff too, so i want to understand why and what is the right way to do it, not side step it

lofty pumice
formal moat
#

so you dont know?

lofty pumice
#

I had one time using pip to install a python app. But it didn't work

#

So i update&&upgrade

#

Then reboot

formal moat
#

reboot didnt work

lofty pumice
lofty pumice
#

Hah, i can't help you with this

#

Sorry

formal moat
#

oh ok

honest temple
#

You need to make a virtual enviroment so that pip won't mess with system components.

python3 -m venv .venv

Then enter the environment with

source .venv/bin/activate

and do your commands, when you want to exit type

deactivate

formal moat
#

seems like alot of faf around, why does it happen

#

in linux mint and not some others as many installers dont mention it

honest temple
#

It is done to protect some python apps and libraries installed via apt. You can see them with

dpkg -l | grep python3-

installing things through pip on system level might break them or their dependencies. I suppose other distros allow this because they think you know what you're doing if you break it.

formal moat
#

so the items in pip3 install-r requirements.txt ar ebeing blocked, basically

#

i was able to install them by apt, but they were already installed it seems

honest temple
#

It'd really help if you took screenshots of what you're trying to do

formal moat
#

i dont understand? its not a specific problem. we just got to that i thought

#

its happened before, same issue. i want to know why it happens

honest temple
#

And I want to see what actually happens in the first place

#

I'm guessing that's what you're trying to install, so I'll look into that

formal moat
#

lara96583OP

10:15 PM
so the items in pip3 install-r requirements.txt are being blocked, basically
i was able to install them by apt, but they were already installed it seems <<

heavy steppe
#

late here, python on mint/ubuntu requires vevns (which you should use anyways) to use pip. Otherwise, like someone else said, use python3-package

#

If you're using requirements.txt, you need pip, and therefore, a venv

honest temple
#

Core requirements are already installed in mint 22, so you can just git clone the repo and start gui from there.

git clone https://github.com/ArgeliusLabs/Chasing-Your-Tail-NG.git
cd Chasing-Your-Tail-NG
python3 cyt_gui.py

if you want additional requirements (edit requirements.txt), from Chasing-Your-Tail-NG folder you run

python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python3 cyt_gui.py
formal moat
#

thanks, as i said i already figured that out

#

the question was why i was getting the warning, and you explained that already

#

the repos were locked, #requested and #cryptography or something like that. both already installed as i used apt install and it said so

#

(y)

#

🫂

honest temple
#

Have a nice day then

formal moat
#

thanks