Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Steven Robbins Newsgroups: linux.debian.maint.python Subject: Need a Python 3.8 virtual environment Date: Wed, 03 Mar 2021 04:30:01 +0100 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Mar 3 03:26:19 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.698 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .sumost. - helo: .smtp-out-so.shaw. - helo-domain: .shaw.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -3.5 X-Greylist: delayed 497 seconds by postgrey-1.36 at bendel; Wed, 03 Mar 2021 03:26:05 UTC X-Authority-Analysis: v=2.4 cv=MaypB7zf c=1 sm=1 tr=0 ts=603effd6 a=vK2tIu+SaqGH62o10bOGLQ==:117 a=vK2tIu+SaqGH62o10bOGLQ==:17 a=xqWC_Br6kY4A:10 a=dESyimp9J3IA:10 a=ngfLgeC7AAAA:8 a=Rm-cc1hFE5hfHFgMbSYA:9 a=CjuIK1q_8ugA:10 a=jghhAKFppaueorGErwEA:9 a=FfaGCDsud1wA:10 a=YR-_bsnSptyVJL2MKOFA:22 a=BPzZvq435JnGatEyYwdK:22 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1843354.3aalSqDc1r"; micalg="pgp-"; protocol="application/pgp-signature" X-Cmae-Envelope: MS4xfFfsokasOJXXPSHpsgcmqqq83B9p17ibud9kcjwOe+x0UDwBmZ6o/y7Azq343gUmrpfEyzI8S18BNfRnhMLx7jXpnxHyASto4IykitwPkmj88sj9yxEn DeIb6lVwSN3g1ZoM2ceqHClM4Nhb9j1EEETu7US4Uk6WBYyi3DmpbdmntivaLgVwjvrhc5PuTtgthf4bAWdFKOeJujFBl/6Z8ao= X-Mailing-List: archive/latest/19030 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/23748341.5eAvVsrXc7@riemann Approved: robomod@news.nic.it Lines: 122 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 02 Mar 2021 21:17:36 -0600 X-Original-Message-ID: <23748341.5eAvVsrXc7@riemann> Xref: csiph.com linux.debian.maint.python:13246 --nextPart1843354.3aalSqDc1r Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Steven Robbins To: debian-python@lists.debian.org Subject: Need a Python 3.8 virtual environment Date: Tue, 02 Mar 2021 21:17:36 -0600 Message-ID: <23748341.5eAvVsrXc7@riemann> Hi, I'm trying to use a (non-Debian) python system built on python 3.8. Debian's default is currently 3.9 so I am advised to use a virtual environment. Being a newbie, I searched around and found a writeup covering several different virtualization tools [1]. Note I am using Debian 'sid'. I can use the tool "virtualenv" to create a virtual environment for default python: steve@riemann:/tmp$ virtualenv blah created virtual environment CPython3.9.1.final.0-64 in 77ms creator CPython3Posix(dest=/tmp/blah, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/steve/.local/share/virtualenv) added seed packages: pip==20.1.1, pkg_resources==0.0.0, setuptools==44.0.0, wheel==0.34.2 activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator But not for python 3.8: steve@riemann:/tmp$ virtualenv -p python3.8 blah38 RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.8' I have installed literally all the Debian python packages whose name contains 'python3.8'. A very short list: ii libpython3.8:amd64 3.8.7-1 amd64 Shared Python runtime library (version 3.8) ii libpython3.8-dev:amd64 3.8.7-1 amd64 Header files and a static library for Python (v3.8) ii libpython3.8-minimal:amd64 3.8.7-1 amd64 Minimal subset of the Python language (version 3.8) ii libpython3.8-stdlib:amd64 3.8.7-1 amd64 Interactive high-level object-oriented language (standard library, version 3.8) ii python3.8 3.8.7-1 amd64 Interactive high-level object-oriented language (version 3.8) ii python3.8-dev 3.8.7-1 amd64 Header files and a static library for Python (v3.8) ii python3.8-minimal I have also tried the module 'venv': steve@riemann:/tmp$ python3.8 -m venv v38 The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt-get install python3-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Failing command: ['/tmp/v38/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip'] steve@riemann:/tmp$ python3.8 -m venv blah38 The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt-get install python3-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Failing command: ['/tmp/blah38/bin/python3.8', '-Im', 'ensurepip', '-- upgrade', '--default-pip'] Note that I do have 'python3-venv' installed, but it is the 3.9 version: ii python3-venv 3.9.1-1 amd64 pyvenv-3 binary for python3 (default python3 version) Is there something I've missed? Thank you, -Steve [1] https://linuxconfig.org/how-to-set-up-a-python-virtual-environment-on-debian-10-buster --nextPart1843354.3aalSqDc1r Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEy89k8fa3rclNjyokyeVeL63I9LkFAmA+/9AACgkQyeVeL63I 9LlMXw//SgU0tC07cki+cRNSDvTfahDy/ixIYW17vzpOIObosca2kn0PqLpG+rbh sVr1S5eVO9yTdZHf2G//GH/PKCYRyrwU/hi1c1gwG070a25EQsDiSRvLV8z/3M3I npESAWzxU4gyZammukw3Eia12xEtnQjjTUksBGjWK2DrZtSsyeRnZZ6BhoGJ1d7Q s6ydRRaOx0M6fYnNlV2Xy9j4jKXIMnoj8MbgNCAN9EcFC8FjnW1fQurmTkQAt7uC Hw7uHFR6gQhciSmMG+jj78hpTnRNTUd2iskWSUs4U+Ff1TKXofDIDQKUs+299T0G NfO91GqikHaLD+4eTcyk+9m+PsFlMgzIep+K0k1SSMHxQls/yIPtxUFW7Ro13f/L eLiB2ajSsPUTgydkq2fzNmeyoyddSNSiNeh//AOxg1BN8uRoBhNVN00ZVmKaMsqO 4yXoCr4VTCcCK3/dJWEFHV/oLDwoUbq0HZ9soaJaICi+GAWBV8sYuvm6Gt13tQrz UTaVSnWiy7ajaD82NXuTVnIkI4bpXxjdJghKrOOEQxWAAgUhWrtzhfJs7jwdPSy3 cKvmZnFbZqGe6Xs9Hv2aL8ALU4uAsuMWbcFR/ApIJ6rMWwDYf9AMplijRp7SuCfr Ucn5YmkoTPqm5THu+kUAktD6uzV0WYYUnsYzFma0N3pFCLM/fBc= =7Zjc -----END PGP SIGNATURE----- --nextPart1843354.3aalSqDc1r--