From nobody Wed Oct 19 17:29:08 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MsyQS3X1pz4gTYn; Wed, 19 Oct 2022 17:29:20 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [147.160.157.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "A1-48603", Issuer "A1-48603" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MsyQR3nkhz3kc6; Wed, 19 Oct 2022 17:29:19 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (doug@localhost [127.0.0.1]) by fledge.watson.org (8.16.1/8.16.1) with ESMTPS id 29JHT9BS044442 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 19 Oct 2022 17:29:09 GMT (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.16.1/8.16.1/Submit) with ESMTP id 29JHT8OT044438; Wed, 19 Oct 2022 17:29:08 GMT (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Wed, 19 Oct 2022 17:29:08 +0000 (UTC) From: doug@safeport.com Reply-To: doug@fledge.watson.org To: "Steve O'Hara-Smith" cc: Evilham , Tomek CEDRO , FreeBSD Questions Mailing List , freebsd-hackers@freebsd.org, questions@freebsd.org Subject: Re: proper python3 interpreter invocation In-Reply-To: <20221019112338.4a4f7c3ef8a912e2b3beedfa@sohara.org> Message-ID: <4c66d3-a0de-c8bd-ae78-d918667fcc53@safeport.com> References: <33597a9aff9c418bdb4a7cd9364ebafe51d4@yggdrasil.evilham.com> <20221019112338.4a4f7c3ef8a912e2b3beedfa@sohara.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4MsyQR3nkhz3kc6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of doug@safeport.com does not designate 147.160.157.40 as permitted sender) smtp.mailfrom=doug@safeport.com X-Spamd-Result: default: False [-2.10 / 15.00]; R_SPF_FAIL(1.00)[-all]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org,freebsd-hackers@freebsd.org,questions@freebsd.org]; ASN(0.00)[asn:6405, ipnet:147.160.157.0/24, country:US]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[safeport.com]; FROM_NO_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; HAS_REPLYTO(0.00)[doug@fledge.watson.org]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; REPLYTO_DN_EQ_FROM_DN(0.00)[]; HAS_XAW(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 19 Oct 2022, Steve O'Hara-Smith wrote: > On Wed, 19 Oct 2022 11:36:40 +0200 > Evilham wrote: > >> There is no python port on FreeBSD, > > Oh yes there is :) It depends on the current python and installs > symlinks. > > ------------------------------- > $ python --version > Python 3.9.14 > $ pkg info python > python-3.9_3,2 > Name : python > Version : 3.9_3,2 > Installed on : Wed Oct 19 11:19:14 2022 IST > Origin : lang/python > Architecture : FreeBSD:13:* > Prefix : /usr/local > Categories : python lang > ... > -------------------------------- > > -- > Steve O'Hara-Smith ??? This on bmy 12.3 xfce work station artemis:~> pkg info -x ^python python37-3.7.14 python38-3.8.14 python39-3.9.14 All the different versions come from various libraries/applications having different requirements. All happily live together. I would think if you are developing for a standalone application having your development system use python directly would be better than running in an environment. I'm not exactly a python newbie but I have never been able to get environments to work. FreeBSD at any rate does not care how many versions you have, just invoke the one you want to use directly.