Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #221021
| From | Alex Mestiashvili <amestia@rsh2.donotuse.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: python3 modules -- apt vs pip? |
| Date | 2020-04-06 21:20 +0200 |
| Message-ID | <zSFrP-6Gf-11@gated-at.bofh.it> (permalink) |
| References | <zRCPo-Nb-9@gated-at.bofh.it> <zRMYq-746-11@gated-at.bofh.it> <zSBHz-4mh-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 4/6/20 5:11 PM, Anil F Duggirala wrote: >> Python provides virtualenv, plus one can install most of the modules >> locally with pip3 install --user <blabla> which will install the >> modules >> in ~/.local/lib and tools in ~/.local/bin, so don't forget to add >> this >> to your PATH. >> > > Could you please explain (to a newbie) exactly what are the advantages > of using the --user option and the possible drawbacks as well? please > Could you tell me why I wouldn't want to use a virtualenv? Is it just > because of the pain of having to activate this virtualenv every time I > want to use those modules? or am I losing any other functionality > provided by my system-wide python? > I am surprised this question was asked 2 days ago, I had the exact same > question today. The numpy module is on version 1.16.2 in the debian > repositories and is on version 1.18.2 in pip. > thank you, > virtualenv makes you flexible, you can have completely different environments isolated from each other. For example Debian Buster comes with python3.7 and you for whatever reason need python 3.4 or 3.8, or maybe both because of let's say application requirements. This would work with different envs. Installing modules with --user is easier but this way you have 1 environment in your home bound to the system python. Not every package in Debian can easily be updated. Updating numpy system-wide most likely will break tons of other software. But the same applies to pip to some extent, you may have a module requiring an old numpy which wouldn't work with the new one and so on.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python3 modules -- apt vs pip? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2020-04-04 00:20 +0200
Re: python3 modules -- apt vs pip? thierry.leurent <thierry.leurent@asgardian.be> - 2020-04-04 08:00 +0200
Re: python3 modules -- apt vs pip? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-04 08:40 +0200
Re: python3 modules -- apt vs pip? Nemeth Gyorgy <lists@friczy.net> - 2020-04-04 10:30 +0200
Re: python3 modules -- apt vs pip? Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2020-04-04 11:10 +0200
Re: python3 modules -- apt vs pip? Keith Christian <keith1christian@gmail.com> - 2020-04-04 16:40 +0200
Re: python3 modules -- apt vs pip? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-04 18:30 +0200
Re: python3 modules -- apt vs pip? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2020-04-04 19:20 +0200
Re: python3 modules -- apt vs pip? Anil F Duggirala <anilduggirala@fastmail.fm> - 2020-04-06 17:20 +0200
Re: python3 modules -- apt vs pip? Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2020-04-06 21:20 +0200
When should I install my own language and library versions? Dan Ritter <dsr@randomstring.org> - 2020-04-06 21:40 +0200
Re: When should I install my own language and library versions? Simeone Dominique <dominique.simeone@yahoo.fr> - 2020-04-06 22:30 +0200
csiph-web