Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #13251
| From | Julien Palard <julien@palard.fr> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Need a Python 3.8 virtual environment |
| Date | 2021-03-03 11:50 +0100 |
| Message-ID | <BOxeN-7Nc-1@gated-at.bofh.it> (permalink) |
| References | <BOqmZ-3IX-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Le 2021-03-03 à 04:17, Steven Robbins a écrit :
> 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.
As other told, the right way is probably to compile it yourself (or use
pyenv, but I don't like pyenv "shims", I prefer to keep it simple).
I'm using a bash function [1] to easily recompile needed Pythons (I test
some projects with Python 3.5 to 3.9), but it's not that hard without my
bash function:
apt install make build-essential libbz2-dev liblzma-dev libssl-dev
llvm libreadline-dev libncurses5-dev libffi-dev zlib1g-dev tk-dev
libsqlite3-dev xz-utils
wget the version you want from https://www.python.org/ftp/python
tar -xzf it
./configure --prefix=$HOME/.local/
make -j $(nproc)
make altinstall
You'll get a `python3.8` binary in ~/.local/bin, you can create venvs
with it as:
python3.8 -m venv the_venv_path
[1]:
https://github.com/JulienPalard/dotfiles/blob/0b5feb79b1ba648b7212162b68da5a182e0341c1/.bashrc#L196
--
[Julien Palard](https://mdk.fr)
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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