Problem installing package, how to solve?
Bo Berglund
bo.berglund at gmail.com
Sun Feb 4 12:45:51 UTC 2024
On Fri, 02 Feb 2024 17:42:35 +0100, Oliver Grawert <ogra at ubuntu.com> wrote:
>Hi,
>Am Freitag, dem 02.02.2024 um 10:27 +0100 schrieb Bo Berglund:
>
>> > Hard to advise without knowing whether you're deliberately using
>> > pip outside a
>> > virtualenv for other things.
>>
>> I don't know what that statement means...
>> What is "outside a virtualenv"???
>
>see:
>https://www.omgubuntu.co.uk/2023/04/pip-install-error-externally-managed-environment-fix
>
>nowadays using pip directly on your machine outside of a venv setup is
>frowned upon since it can (and has in the past) cause conflicts with
>apt python packages ...
>
Concerning this "venv":
I am not programming anything at all using python....
I cannot understand that language.
But I am using utilities that are downloaded/installed on my Linux machine using
whatever install mechanism the utility suggests. Many of these seem to be
written using python, but taht is not very much advertised when getting the
utility.
Of course pip suggests tyhat we are dealing with a python utility, but apt does
not.
In the case of streamlink it turns out that the version one gets when using apt
to install it (apt being my first source for utility installs) is WAY lower than
the version when using pip to install it. Like going from major version 3 to
major version 6!
When it is installed I am assuming it is available for general use as long as
the executable is on path. So it should not depend on in which direcvtory one
issues the command.
Reading the replies here makes me believe that the venv thing makes a utility
only work if it is launched inside a specific directory on the disk, and that is
not what I want.
I launch my utilities from 'cron' or 'at' or from whatever user dir I happen to
be inside with a terminal and I expect it to work the same everywhere...
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list