Best Practice Virtual Environment
Cameron Simpson
cs at cskk.id.au
Sat Oct 5 17:59:56 EDT 2024
On 05Oct2024 22:27, Ulrich Goebel <ml at fam-goebel.de> wrote:
>Debian (or even Python3 itself) doesn't allow to pip install required
>packages system wide,
This is gnerally a good thing. You might modify a critical system-used
package.
>But is it right, that I have to do that for every single user?
No. Just make a shared virtualenv, eg in /usr/local or /opt somewhere.
Have the script commence with:
#!/path/to/the/shred/venv/bin/python
and make it readable and executable.
Problem solved.
Cheers,
Cameron Simpson <cs at cskk.id.au>
More information about the Python-list
mailing list