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


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

Re: Need a Python 3.8 virtual environment

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Pokoradi Balazs <pokoradi.1899@gmail.com>
Newsgroups linux.debian.maint.python
Subject Re: Need a Python 3.8 virtual environment
Date Wed, 03 Mar 2021 09:00:01 +0100
Message-ID <BOuAh-68R-1@gated-at.bofh.it> (permalink)
References <BOqmZ-3IX-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Mar 3 07:51:33 2021
Old-Return-Path <pokoradi.1899@gmail.com>
X-Amavis-Spam-Status No, score=-4.95 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=cTAthh3tZXDPMQ1a8OVzl8LHf+O/zxHYBxB0rEmkOZw=; b=ndvJChrYiSCEw9xWGzuImPbSuU4VvqBedPxq7d4W+lRhlkpF2rfbFP+YPlDEmrk9GL U/f/BeQb6sHOMh10Q+dz8FR497G8C1l3SRUP+V9pMs1VGWjnM8ywdXuhvCbbjpjwLPEV vshnhUmLh02wtXx3UkGjyIliDoa9IolHSR8lYlKRaEZxJqAiuv6W9ySFwkYOI3NeZM2S ExXuMyWfTNb8ndWNz5E86Xg50StqRPlv8S5H1F1IbFmvDDxcDaBTsmXbOJefxt0CeUz/ 2btkdx03I8oGW2ZIpBIRiZ1bd2LBgYFRfPN/Jqf92IeJTGHTPiReTu3jUxH6WRU4XMLb WfoQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=cTAthh3tZXDPMQ1a8OVzl8LHf+O/zxHYBxB0rEmkOZw=; b=Vv8dTkWOq/w9KIn5tRcRDM4wwH938P1qwhyn6fqgjQmKIXSGUx/tuAHTEpbQwiNyAB zumDOvfSTQTTE5OQT5lu/zK0WHXePIGONfPKkBwJ5S62NXEV5cBQoXeudoBnjBgyYbPq GRcfwiDgXC7v6Jat29lIrZuNImFXVfQ+Cvhpd9ZYPawZWefmsXee9YGhrvr1pEqVG2+t DVwDLW2Rqg0OLMpLYk41ctG4m5z8OMbAcUrO5jZcOKAWryyyeYP5EE1B5qGdFl13U7/9 7VAoVKNunbIQeeu5LP3MBhDZOD0mEvvdvqDlswdCS7jHn8zJuu4eThKuhoNL3XO2mNJb 3OOg==
X-Gm-Message-State AOAM533Hu9aoz2dix3M2N3mfkpQ8f3DGud8lJT8+R8mqhB3Vd+B729XL YemLXr3ZjxMiNQX3Poj8yZT7igfUcc4=
X-Google-SMTP-Source ABdhPJxPv7vF8fVHHfHGeAdA0JJ7bh4ikwSDUoD8yZ/flWrNtUs2/WARKykkUobge2zzm8p6lG1raQ==
X-Received by 2002:a05:6000:147:: with SMTP id r7mr26320166wrx.25.1614757873579; Tue, 02 Mar 2021 23:51:13 -0800 (PST)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0
MIME-Version 1.0
Content-Type multipart/alternative; boundary="------------30751789AD3F35BAD513E5EB"
Content-Language en-US
X-Mailing-List <debian-python@lists.debian.org> archive/latest/19033
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/f77d061b-d5a6-cd70-0a03-59d8b8667e48@gmail.com
Approved robomod@news.nic.it
Lines 230
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 3 Mar 2021 07:51:12 +0000
X-Original-Message-ID <f77d061b-d5a6-cd70-0a03-59d8b8667e48@gmail.com>
X-Original-References <23748341.5eAvVsrXc7@riemann>
Xref csiph.com linux.debian.maint.python:13249

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Steven,

i tested in a freshly installed virtualbox machine and was able to 
create a virtual environment, using the following steps:

built python3.8.7 form tarball 
(|https://www.python.org/ftp/python/3.8.7/Python-3.8.7.tar.xz)|

ran python3.8 -m venv test387

and then could activate it.

I hope this helps,

Balazs

On 03/03/2021 03:17, Steven Robbins wrote:
> 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

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