Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13256

Re: Need a Python 3.8 virtual environment

From Stefano Rivera <stefanor@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Need a Python 3.8 virtual environment
Date 2021-03-03 18:40 +0100
Message-ID <BODDA-3fE-3@gated-at.bofh.it> (permalink)
References <BOqmZ-3IX-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Need a Python 3.8 virtual environment Steven Robbins <steve@sumost.ca> - 2021-03-03 04:30 +0100
  Re: Need a Python 3.8 virtual environment Jerome Kieffer <Jerome.Kieffer@esrf.fr> - 2021-03-03 08:00 +0100
  Re: Need a Python 3.8 virtual environment Andrey Rahmatullin <wrar@debian.org> - 2021-03-03 08:20 +0100
  Re: Need a Python 3.8 virtual environment Pokoradi Balazs <pokoradi.1899@gmail.com> - 2021-03-03 09:00 +0100
  Re: Need a Python 3.8 virtual environment Nicolas Chauvat <nicolas.chauvat@logilab.fr> - 2021-03-03 10:10 +0100
  Re: Need a Python 3.8 virtual environment Julien Palard <julien@palard.fr> - 2021-03-03 11:50 +0100
    Re: Need a Python 3.8 virtual environment Jeremy Stanley <fungi@yuggoth.org> - 2021-03-03 15:00 +0100
    Re: Need a Python 3.8 virtual environment Steven Robbins <steve@sumost.ca> - 2021-03-04 04:50 +0100
  Re: Need a Python 3.8 virtual environment Yaroslav Halchenko <debian@onerussian.com> - 2021-03-03 14:40 +0100
    Re: Need a Python 3.8 virtual environment Andrey Rahmatullin <wrar@debian.org> - 2021-03-03 14:40 +0100
  Re: Need a Python 3.8 virtual environment Stefano Rivera <stefanor@debian.org> - 2021-03-03 18:40 +0100
    Re: Need a Python 3.8 virtual environment Andrey Rahmatullin <wrar@debian.org> - 2021-03-03 19:00 +0100
      Re: Need a Python 3.8 virtual environment Matthias Klose <doko@debian.org> - 2021-03-03 19:10 +0100
  Re: Need a Python 3.8 virtual environment Karthik <karthikgatiganti@gmail.com> - 2021-03-03 20:00 +0100

csiph-web