Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod From: Stefano Rivera Newsgroups: linux.debian.maint.python Subject: Re: Need a Python 3.8 virtual environment Date: Wed, 03 Mar 2021 18:40:02 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Mar 3 17:39:22 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.852 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 Dkim-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=debian.org; i=@debian.org; q=dns/txt; s=satie-ed25519.stefanor.user; t=1614793144; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=hGctxXc2wakE4772vakVFt0RnmhLGWy6LZbDN+0ESRk=; b=ZoZIwy+yn6jz1YP2xfhJ8arguMsw1rw6cHs6UCPCaY/AvFJTpaU2VMLA6VWCRT0SkBrU5 nJO7wzyGYkZCz5zDg== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; i=@debian.org; q=dns/txt; s=satie-rsa.stefanor.user; t=1614793144; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=hGctxXc2wakE4772vakVFt0RnmhLGWy6LZbDN+0ESRk=; b=ApMjBrWX42oafo8nSQe2YwwozEFcF+LgTwGOqXR85EsC7HtTdA7spG/KHgHcznIQ+vTjm 8ZMkKembDSqnagEIWx0M65BnhR7x43WCViQaqe2elGLTuG1DsH+ujVClBdM9NJd/Jxg1HeO CrQL1t3p4u50dLiQTvIkKc+bs29vLz9eRbzupkW/QqkntFU9TH8v0snFXHO7JaHsTbkL+lP REBliZjTyzjY+zE1LdNkpDt9dobfYDBPADbD1MO5b88kKCkh6IXZ9uIdjUYtAVcLDYbSaEJ z4Jj+Ka8Fdyq0n0gT2BFmdXnfFzOSHBxzfez0TfzfzjMe7UKJ8Qs995wIi6A== Mail-Followup-To: Steven Robbins , debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Gpg-Public-Key: http://www.rivera.za.net/stefano.gpg User-Agent: NeoMutt/20180716 X-Mailing-List: archive/latest/19040 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20210303173904.wb2htrblk7bwepua@satie.tumbleweed.org.za Approved: robomod@news.nic.it Lines: 40 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Wed, 3 Mar 2021 17:39:04 +0000 X-Original-Message-ID: <20210303173904.wb2htrblk7bwepua@satie.tumbleweed.org.za> X-Original-References: <23748341.5eAvVsrXc7@riemann> Xref: csiph.com linux.debian.maint.python:13256 Hi Steven (2021.03.03_03:17:36_+0000) > 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? You need python3.8-venv. But even then you may run into a missing/incompatible distutils (#979819): https://bugs.debian.org/979819 You can see if you have, by running the failing ensurepip command by hand. Hopefully we'll make that situation better soon... BTW: There's a deadsnakes-like archive for Debian: https://people.debian.org/~paravoid/python-all/ SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272