Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #659846
| From | rbowman <bowman@montana.com> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: "CERN is using Python at the very core of all its scientific research." |
| Date | 2024-07-15 17:24 +0000 |
| Message-ID | <lfl49jF1jdsU1@mid.individual.net> (permalink) |
| References | <6692f33c$0$1895499$882e4bbb@reader.netnews.com> <lfgc4sFahf1U2@mid.individual.net> <slrnv97o30.411.candycanearter07@candydeb.host.invalid> <lfikhvFkhhsU3@mid.individual.net> <slrnv9ahai.4hs.candycanearter07@candydeb.host.invalid> |
On Mon, 15 Jul 2024 16:00:03 -0000 (UTC), candycanearter07 wrote: > 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. No, they're scripts and on Linux you get 4 flavors, activate activate.csh activate.fish, and Activate.ps1. The last is for PowerShell which you can install on Ubuntu, though I'm not sure why. I used to use tcsh but when the Linux world seemed to prefer bash I switched. I never did anything with fish. On Windows you get activate.bat, deactivate.bat, activate, and Activate.ps1 and they are in the Scripts subdirectory. After you activate a venv the prompt will change to something like (numerical) rbowman@kropotkin: (fastapi) rbowman@kropotkin: and on deactivate it goes back to rbowman@kropotkin: The site=packages for the numerical venv include matplotlib, seaborn, torch, sklearn etc and their dependent packages. The fastapi packages are completely different, fastapi, pydantic, uvicorn, and so forth. Try running the fastapi script in the numerical environment and you won't get past from typing import Union from fastapi import FastAPI from pydantic import BaseModel That's what virtual environments are all about. Try installing all those packages in the global site-packages and you get the mess Lawrence mentioned, and it won't matter if you're on Linux, Windows, BSD, or any other OS. The clueless can screw any OS up.
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