Reputation: 36793
I have a project on GitHub with a tox.ini file:
[tox]
envlist = py3
[testenv]
deps = -rrequirements.txt
commands =
pytest --doctest-modules
It works well. But when I replace "py3" with "py37", it fails with the error:
ERROR: py37: InterpreterNotFound: python3.7
As far as I know, tox should support Python 3.7. Is this a problem specifically with tox on github?
Upvotes: 11
Views: 14305
Reputation: 1387
From a combination of the answers and resources provided here. What I did was:
pyenv
I did install all python version I needed.Upvotes: 0
Reputation: 5311
In the tox.ini file, write python3.7
instead of py37
and you will see that it works.
All credits to the Github user glinskyc for his thread on Github issues.
Also make sure that you are using the latest version for tox, that is 3.23.1
Upvotes: 17