Forums

Python Version

I chose python 3.8 in creating a new Django project but it always makes it 2.7 I tried almost every version available their every version makes it 2.7. I think it is a problem because the 2.7 version now doesnt support some python packages and I have to search for the best python package from the beginning and older versions dont have much support and features.

What makes what Python 2.7? If you set your web app to run Python 3.8, then that is what it will run as.

But when I enter python --version it gives me python 2.7.12 and when I install a python package it only works if it is capable with python 2.7 and the Django version I get is Django==1.11.26 but I might get Django==2.2.7 for python 3.8

I have the same issue I guess I also searched what I have and it is the same. I also chose python 3.8

python in a console runs Python 2.7. If you want to run Python 3.6, use python3.6 etc

Thanks a lot

I've similar issue also: When I created my Django project in 2020, I'd used Python 3.8.2 and when I created my hosting site here on PythonAnwhere, I'd chosen Python 3.8 but it's actually running Python 2.7.12.

And now, in preparation to integrate ChatGPT and AutoGPT with a couple web apps on my site, which both require at least Python 3.10, I went ahead and upgraded the Python version on my local computer to 3.11.

Hope it's easy to achieve what I wanted to have.

I'm not sure what do you mean by "but it's actually running Python 2.7.12" -- from what I see, the web app runs on 3.8. Regarding 3.11 -- it's not supported yet on PA.

Having found two articles: https://help.pythonanywhere.com/pages/ChangingSystemImage and https://help.pythonanywhere.com/pages/InstallingNewModules/ I was able to accomplish what I needed. I think the issue was the default python version settings in the System Image tab: Some choice was 2.7 in there.

Version 3.10 suffices for now as integration of ChatGPT and AutoGPT require v3.10 at the minimum.

Glad to hear our help pages were useful!