Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #659837
| From | candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: "CERN is using Python at the very core of all its scientific research." |
| Date | 2024-07-15 16:00 +0000 |
| Organization | the-candyden-of-code |
| Message-ID | <slrnv9ahai.4hs.candycanearter07@candydeb.host.invalid> (permalink) |
| References | <6692f33c$0$1895499$882e4bbb@reader.netnews.com> <lfgc4sFahf1U2@mid.individual.net> <slrnv97o30.411.candycanearter07@candydeb.host.invalid> <lfikhvFkhhsU3@mid.individual.net> |
rbowman <bowman@montana.com> wrote at 18:43 this Sunday (GMT): > On Sun, 14 Jul 2024 14:30:02 -0000 (UTC), candycanearter07 wrote: > >> venv in general is kinda confusing in my opinion. > > How so? The basic use is simple > > https://docs.python.org/3/library/venv.html > > python -m venv /path/to/new/virtual/environment > > I group all my python project in a python directory so it would be > > python3 -m venv new_project > cd new_project > . ./bin/activate > python -m pip install matplotlib > python -m pip install numpy > etc. > > You can get creative with different python versions but I stick with the > basics. I need to use python3 initially since that's the base install. > After activating the environment it's just python and refers to the python > interpreter in the bin directory of the venv directory. Similarly all the > packages are placed in lib/python.3x/site-packages. You are not trying to > install potentially conflicting packages in a global site-packages. > > To get back to the global environment 'deactivate' > > https://python.land/virtual-environments/virtualenv > > That's a more coherent explanation and points out the minor differences > between Windows and Linux. > > Anaconda can be used with virtual environments too. If you're a real > masochist you can use both but I would suggest sticking with one or the > other. I had problems installing packages I needed with Anaconda so went > back to standard python for most purposes. Esri favors Anaconda so I do > have it on one machine. > > fwiw, VS Code allows you to select the interpreter and thus the venv. For > example if you've installed keras in a venv and switch to a different venv > you don't have access to keras anymore. I didn't know about bin/activate, probably bc on my computer it's not marked as executable..you have to source it for it to work properly. I think I only used it because a project I downloaded required it, and found running the full bin/python3 path every time frustrating. -- user <candycane> is generated from /dev/urandom
Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar
"CERN is using Python at the very core of all its scientific research." DFS <nospam@dfs.com> - 2024-07-13 17:35 -0400
Re: "CERN is using Python at the very core of all its scientific research." rbowman <bowman@montana.com> - 2024-07-13 22:07 +0000
Re: "CERN is using Python at the very core of all its scientific research." candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-07-14 14:30 +0000
Re: "CERN is using Python at the very core of all its scientific research." rbowman <bowman@montana.com> - 2024-07-14 18:43 +0000
Re: "CERN is using Python at the very core of all its scientific research." candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-07-15 16:00 +0000
Re: "CERN is using Python at the very core of all its scientific research." rbowman <bowman@montana.com> - 2024-07-15 17:24 +0000
Re: "CERN is using Python at the very core of all its scientific research." candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-07-16 14:10 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-19 01:12 +0000
Re: "CERN is using Python at the very core of all its scientific research." candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-07-19 14:10 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-14 21:05 +0000
Re: "CERN is using Python at the very core of all its scientific research." rbowman <bowman@montana.com> - 2024-07-15 04:30 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-15 05:42 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-13 23:28 +0000
Re: "CERN is using Python at the very core of all its scientific research." DFS <nospam@dfs.com> - 2024-07-13 20:39 -0400
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-14 01:35 +0000
Re: "CERN is using Python at the very core of all its scientific research." DFS <nospam@dfs.com> - 2024-07-13 22:03 -0400
Re: "CERN is using Python at the very core of all its scientific research." rbowman <bowman@montana.com> - 2024-07-14 04:09 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-14 06:02 +0000
Re: "CERN is using Python at the very core of all its scientific research." rbowman <bowman@montana.com> - 2024-07-14 07:10 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-14 21:05 +0000
Re: "CERN is using Python at the very core of all its scientific research." rbowman <bowman@montana.com> - 2024-07-15 04:18 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-15 05:42 +0000
Re: "CERN is using Python at the very core of all its scientific research." DFS <nospam@dfs.com> - 2024-07-14 13:53 -0400
Re: "CERN is using Python at the very core of all its scientific research." Joel <joelcrump@gmail.com> - 2024-07-14 17:27 -0400
Re: "CERN is using Python at the very core of all its scientific research." % <pursent100@gmail.com> - 2024-07-14 14:30 -0700
Re: "CERN is using Python at the very core of all its scientific research." Joel <joelcrump@gmail.com> - 2024-07-14 17:46 -0400
Re: "CERN is using Python at the very core of all its scientific research." % <pursent100@gmail.com> - 2024-07-14 14:53 -0700
Re: "CERN is using Python at the very core of all its scientific research." Joel <joelcrump@gmail.com> - 2024-07-14 17:57 -0400
Re: "CERN is using Python at the very core of all its scientific research." % <pursent100@gmail.com> - 2024-07-14 15:38 -0700
Re: "CERN is using Python at the very core of all its scientific research." Joel <joelcrump@gmail.com> - 2024-07-14 19:00 -0400
Re: "CERN is using Python at the very core of all its scientific research." % <pursent100@gmail.com> - 2024-07-14 16:29 -0700
Re: "CERN is using Python at the very core of all its scientific research." Joel <joelcrump@gmail.com> - 2024-07-14 19:37 -0400
Re: "CERN is using Python at the very core of all its scientific research." % <pursent100@gmail.com> - 2024-07-14 18:25 -0700
Re: "CERN is using Python at the very core of all its scientific research." DFS <nospam@dfs.com> - 2024-07-15 10:44 -0400
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-17 00:45 +0000
Re: "CERN is using Python at the very core of all its scientific research." DFS <nospam@dfs.com> - 2024-07-16 23:20 -0400
Re: "CERN is using Python at the very core of all its scientific research." rbowman <bowman@montana.com> - 2024-07-17 04:39 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lester Thorpe <lt@gnu.rocks> - 2024-07-14 10:49 +0000
Re: "CERN is using Python at the very core of all its scientific research." Stéphane CARPENTIER <sc@fiat-linux.fr> - 2024-07-14 11:07 +0000
Re: "CERN is using Python at the very core of all its scientific research." CrudeSausage <crude@sausa.ge> - 2024-07-14 07:13 -0400
Re: "CERN is using Python at the very core of all its scientific research." Lester Thorpe <lt@gnu.rocks> - 2024-07-14 11:37 +0000
Re: "CERN is using Python at the very core of all its scientific research." Stéphane CARPENTIER <sc@fiat-linux.fr> - 2024-07-14 12:37 +0000
Re: "CERN is using Python at the very core of all its scientific research." Lester Thorpe <lt@gnu.rocks> - 2024-07-14 13:32 +0000
Re: "CERN is using Python at the very core of all its scientific research." Stéphane CARPENTIER <sc@fiat-linux.fr> - 2024-07-14 14:04 +0000
Re: "CERN is using Python at the very core of all its scientific research." candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-07-14 14:30 +0000
Re: "CERN is using Python at the very core of all its scientific research." Joel Crump <joelcrump@gmail.com> - 2024-07-14 19:05 -0400
Re: "CERN is using Python at the very core of all its scientific research." Chris Ahlstrom <OFeem1987@teleworm.us> - 2024-07-15 08:54 -0400
Re: "CERN is using Python at the very core of all its scientific research." Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-14 21:06 +0000
csiph-web