Problem installing package, how to solve?
Colin Watson
cjwatson at ubuntu.com
Sun Feb 4 14:52:34 UTC 2024
On Sun, Feb 04, 2024 at 09:06:27AM -0500, Little Girl wrote:
> Bo Berglund wrote:
> >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...
>
> The virtual environments act on the terminal that the programs are
> being run from rather than on the programs themselves. In other
> words, when you launch a virtual environment, that session of the
> terminal that you're in is inside of that virtual environment until
> you either issue a command to stop the virtual environment or until
> you close that terminal. The ones I've used affect the prompt so that
> you can see at a glance whether you're in a virtual environment or
> not.
Even that isn't necessary. A program installed in a Python virtualenv
may be linked into your $PATH and run directly without having to
activate/launch/whatever the virtualenv first.
--
Colin Watson (he/him) [cjwatson at ubuntu.com]
More information about the ubuntu-users
mailing list