Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an InterpreterNotFoundError on running the command tox -e py36 during setup #123

Open
MuditJ opened this issue May 23, 2021 · 1 comment

Comments

@MuditJ
Copy link

MuditJ commented May 23, 2021

I was trying to setup this repo as per the details in https://github.com/nteract/testbook/blob/main/CONTRIBUTING.md. On running the command: tox -e py36 I get this error: ERROR: py36: InterpreterNotFound: python3.6

I get the same issue for python 3.7 on running the tox command, although the tests for 3.8 work fine, which is the python version installed on my system.
The docs say regarding the command tox -e py36: This will just execute the unittests against python 3.6 in a new virtual env

So do I need to install the 3.6 and 3.7 versions myself or is this done by tox? If I need to do this, what is the recommended way of doing so?

@MSeal
Copy link
Member

MSeal commented May 27, 2021

Yes, you need python versions installed to run the commands for those versions. For local development just having the 3.8 commands work is fine as the PR will run the other environments.

Depending on OS you can install python 3.x with brew install python3.6 / sudo apt-get install python3.6 or install pyenv and use pyenv install python3.x.x (more reliable path).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants