Forums

Which Python version?

I have perhaps a dumb question about Python versions that proves how little I really know... :)

One of my sites is configured to use Python 3.8 as defined in the Web section of the Python Anywhere admin. Where does this 3.8 binary live?

If I go to my site's virtual environment (venv directory), I see "python" is a link to "python3", If I use ./python from that directory, I am brought a Python 3.75 console, NOT 3.8.

So where does the 3.8 live? I always thought the Python version and all its libraries should live in the venv, but that does not seem to be the case.

You can use which command and then follow symlinks.