I am trying to run test suite on requests code base on Ubuntu 20.04. I noticed that it needs tox and different python versions to run different tests and compatibility checks. I did the following:
- Installed tox using:
$> pip install tox
- Installed pyenv as per documentation here
- Installed python 3.7 using pyenv. I was able to create and use virtual environment using pyenv after this step.
# install python 3.7.17
$ requests> pyenv install 3.7
# make it available to the project
$ requests> pyenv local 3.7.17
- Execute tox only for python 3.7
$ requests> tox -e py37
On doing so i get the following error
ModuleNotFoundError: No module named 'virtualenv.seed.embed.via_app_data'
It doesn't seem to work, even-though I have virtualenv and virtualenv-wrapper installed already. How do I get it to work?