Re: multiple python versions

2021-07-26 Thread Yedidyah Bar David
n versions, due to API changes from Python version to > > > > Python > > > > version. > > > > > > > > You also want to let each project decide with which module version > > > > it > > > > wants to work, due to potentia

Re: multiple python versions

2021-07-22 Thread yochai
t; > On Thu, Jul 22, 2021 at 12:37 PM Shlomo Solomon > <shlomo.solo...@gmail.com> wrote: > > > Omer Zak <w...@zak.co.il> wrote: > > > The answer to your prayers is pyenv.

Re: multiple python versions

2021-07-22 Thread Shlomo Solomon
Python > > > version. > > > > > > You also want to let each project decide with which module version > > > it > > > wants to work, due to potential incompatibilities between module > > > versions (it is no

Re: multiple python versions

2021-07-22 Thread Omer Zak
> On Thu, 2021-07-22 at 19:37 +0300, Shlomo Solomon wrote: > > > Omer Zak wrote: > > > > The answer to your prayers is pyenv. > > > > It allows you to install multiple Python versions in parallel, > > > > and > > > > for > > >

Re: multiple python versions

2021-07-22 Thread Dan Yasny
> > On Thu, Jul 22, 2021 at 12:37 PM Shlomo Solomon > > wrote: > > > > > Omer Zak wrote: > > > > The answer to your prayers is pyenv. > > > > It allows you to install multiple Python versions in parallel, > > > > and for each version you

Re: multiple python versions

2021-07-22 Thread Omer Zak
You do not tell the 3.9.6 environment to reuse 3.8 directory modules. The compiled code in 3.8 may be incompatible with your 3.9.6 interpreter. Use pyenv and then use 'pip install' (under venv, it automatically knows to use pip3 if you use any 3.x version). Do not use 'sudo' because you are

Re: multiple python versions

2021-07-22 Thread Shlomo Solomon
es installed module > versions). > > > On Thu, 2021-07-22 at 19:37 +0300, Shlomo Solomon wrote: > > Omer Zak wrote: > > > The answer to your prayers is pyenv. > > > It allows you to install multiple Python versions in parallel, and > > > for > > > eac

Re: multiple python versions

2021-07-22 Thread Shlomo Solomon
nswer to your prayers is pyenv. > > > It allows you to install multiple Python versions in parallel, > > > and for each version you can maintain several virtualenvs. > > > > Dan Yasny wrote: > > > How about using virtualenv for alternative versions? >

Re: multiple python versions

2021-07-22 Thread Omer Zak
; It allows you to install multiple Python versions in parallel, and > > for > > each version you can maintain several virtualenvs. > > Dan Yasny wrote: > > How about using virtualenv for alternative versions? > > Yes, I know about pyenv and virtualenv, but wouldn't I

Re: multiple python versions

2021-07-22 Thread Dan Yasny
why reinstall? Keep your versions venvs in place and hop in/out On Thu, Jul 22, 2021 at 12:37 PM Shlomo Solomon wrote: > Omer Zak wrote: > > The answer to your prayers is pyenv. > > It allows you to install multiple Python versions in parallel, and for > > each ver

Re: multiple python versions

2021-07-22 Thread Shlomo Solomon
Omer Zak wrote: > The answer to your prayers is pyenv. > It allows you to install multiple Python versions in parallel, and for > each version you can maintain several virtualenvs. Dan Yasny wrote: > How about using virtualenv for alternative versions? Yes, I know about pyenv an

Re: multiple python versions

2021-07-22 Thread Omer Zak
The answer to your prayers is pyenv. It allows you to install multiple Python versions in parallel, and for each version you can maintain several virtualenvs. For more information: https://github.com/pyenv/pyenv https://ostechnix.com/pyenv-python-version-management-made-easier/ On Thu, 2021-07

Re: multiple python versions

2021-07-22 Thread Dan Yasny
How about using virtualenv for alternative versions? On Thu, Jul 22, 2021 at 12:05 PM Shlomo Solomon wrote: > The default Kubuntu installation is 3.8.10 and I do not want to > uninstall it since that could potentially "break" something. > > But for various reasons (not relevant to this

multiple python versions

2021-07-22 Thread Shlomo Solomon
The default Kubuntu installation is 3.8.10 and I do not want to uninstall it since that could potentially "break" something. But for various reasons (not relevant to this discussion), I also have 3.9.6 installed. I can run either one of them, but in some cases, imports of modules that work in