I just installed pyenv. After that I installed python 3.8.0 in the system
So I have
pyenv versions
system
* 3.8.0 (set by /home/me/.pyenv/version)
I have the tox.ini
[tox]
envlist = py36,py38
skipsdist = True
[testenv]
# instsall pytest in the virtualenv where commands will be executed
deps = pytest
commands =
#NOTE: you can run any command line tool here -not just tests
pytest
When I tried tox from system, it could not find py38 but when I did pyenv global 3.8.0
it worked.
mmm do I have to enter the version? - I asked myself
I then installed python 3.9.16 so now I have
pyenv versions
system
3.8.0
* 3.9.16 (set by /home/me/.pyenv/version)
and I added py39 to the envlist in the tox.ini
[tox]
envlist = py36,py38,py39
skipsdist = True
[testenv]
# instsall pytest in the virtualenv where commands will be executed
deps = pytest
commands =
#NOTE: you can run any command line tool here -not just tests
pytest
However now, it always fail.
- If I am in 3.8.0 it can not find 3.9.16
- If I am in 3.9.16 it can not find 3.8.0
The curious thing is that inside .tox
folder there are three complete folders with py36,py38 and py39
But tox cannot run them all.
How can this be solved?