Forums

can't change python version on eu.pythonanywhere.com/

Hi, noob here, I have use the hashbang as described here: https://help.pythonanywhere.com/pages/SaveAndRunPythonVersion, and put #!/usr/bin/python3.9.5 as the first line in my test .py file but the test file still reports ( via platform.python_version() and sys.version ) that it is using python 3.10.5. How do I get pythonanywhere to run python version 3.9.5 instead? Also why can't I just cpoy, cut and paste while editing my file on pythonanywhere?.

Make it #!/usr/bin/python3.9 instead of #!/usr/bin/python3.9.5

What do you mean by "can't copy, cut and paste"?