Deutsch   English   Français   Italiano  
<67b1a959$0$16834$426a74cc@news.free.fr>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed4-a.proxad.net!nnrp6-1.free.fr!not-for-mail
Newsgroups: comp.os.linux.advocacy
From: =?UTF-8?Q?St=C3=A9phane?= CARPENTIER <sc@fiat-linux.fr>
Subject: Re: Hobbyware WinCrap 11 strikes again
References: <vo75q5$3vki0$1@dont-email.me> <zCJpP.39$EyH6.1@fx45.iad>
 <vo7ttl$3nof$1@dont-email.me> <qhLpP.67094$za5e.59176@fx09.iad>
 <vo830p$4ntj$1@dont-email.me> <f_1qP.80552$YsRf.33634@fx18.iad>
 <vocbbn$1444h$1@dont-email.me> <1WoqP.4088$NgFa.1524@fx46.iad>
 <voeqct$1lgc9$1@dont-email.me> <6CIqP.4095$NgFa.688@fx46.iad>
 <vogq82$20qbu$1@dont-email.me> <67b07a28$0$29716$426a74cc@news.free.fr>
 <m1ce2kFoog9U1@mid.individual.net> <67b10f38$0$28493$426a34cc@news.free.fr>
 <m1cqr6Fqf8iU2@mid.individual.net>
Organization: Mulots' Killer
User-Agent: slrn/pre1.0.4-9 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: 16 Feb 2025 09:01:13 GMT
Lines: 44
Message-ID: <67b1a959$0$16834$426a74cc@news.free.fr>
NNTP-Posting-Date: 16 Feb 2025 10:01:13 CET
NNTP-Posting-Host: 78.201.248.7
X-Trace: 1739696473 news-2.free.fr 16834 78.201.248.7:57514
X-Complaints-To: abuse@proxad.net
Bytes: 3639

Le 16-02-2025, vallor <vallor@cultnix.org> a écrit :
> On 15 Feb 2025 22:03:36 GMT, Stéphane CARPENTIER <sc@fiat-linux.fr> wrote
> in <67b10f38$0$28493$426a34cc@news.free.fr>:
>
>> Le 15-02-2025, rbowman <bowman@montana.com> a écrit :
>>> On 15 Feb 2025 11:27:36 GMT, Stéphane CARPENTIER wrote:
>>>
>>>> Now, on some systems, like ubuntu, python is managed by the system, so
>>>> it refuses to execute a "pip install". And if the library isn't provided
>>>> by ubuntu, you have to run "pip install" in a virtual environment to be
>>>> able to use a library designed not to be shared with the libraries of
>>>> the system.
>>>
>>> I believe 'sudo pip install xxxxx' will work although I prefer to use 
>>> venvs. Installing to the system libs might be preferable for something 
>>> like ruff but I still do that in the venv.
>> 
>> I can't test it now, but I'm pretty sure it wouldn't work. The error
>> message was explicit. It didn't said "you don't have the authorisation".
>> It said something like "the libraries are managed by your distribution
>> and you should use the package manager of your distribution instead, run
>> sudo apt install". I'm sure there are ways to force "pip install" to run
>> anyway, but I strongly believe it would be a bad idea because I have no
>> idea about the side effects.
>
> It also gives instructions on how to set up a venv, which (once I figured out
> what that means), seems to work well.

Yes, that's what I said: I had to run it in a virtual environment. So
it's what I said, the official way of using python for a developer is to
use it in a virtual environment. Which means the programmer is expecting
to install the library required by is software and not using the
libraries of the system. It's not my decision, it's, like I said, the
new way: the libraries installed by the system are used by the system
and the libraries installed by the developer are used by the software.
They are not shared anymore and it avoids compatibilities issues.

And it's exactly what snap, appimage and flatpack are doing on a broader
way than python. Like it or not, it's what people are doing now, and
there are reasons behind that.

-- 
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io