I'm quite newbiew with server configuration so I've created a droplet from DigitalOcean that has Django on Ubuntu 14.04.
My app was running pretty fine but after a few changes I started facing a few issues related to environment. I'm developing with Python 3.4 and Django 1.7 and my server is running with Python 2.7 and Django 1.7.
Question: how can I make the server run with the proper python version? This may help:
# python --version
Python 2.7.6
# python3 --version
Python 3.4.0
This is the tutorial I've followed: https://www.digitalocean.com/community/tutorials/how-to-use-the-django-one-click-install-image
Thanks!
Related
I'm aware that the Python version must be the same as the python dash before deploying dash on the IIS Server.
dash version is currently 2.7.0
Python version is currently 3.10.6
Do I need to downgrade the python version? If so, which version do I downgrade it to.
I am working with Apache Airflow in AWS (MWAA) and I have deployed a python package that was developed on python 3.8. It was running fine locally, however, on MWAA it starts giving syntax errors probably because the python version in MWAA is 3.7. Is there any possibility to upgrade the python version in MWAA or any workaround for this?
As you can see here https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-faqs.html#python-version MWAA uses python 3.7
It means plugins and DAGs will have to be in python 3.7 (no walrus for you!)
But tasks can still be run on python 3.8+ if:
you run them in docker (via EC2, Sagemaker or other)
you upgrade python on a worker using the bashOperator (I do not recommand it)
I hope they upgrade soon.
You have already done all the configuration to implement python in the IIS, but it gives me an error.
I already installed python 3.9 on my machine and the IIS has everything installed
Configuration python in IIS:
This is my first attempt at python. What is going wrong?
I am trying to run a django project on an EC2 server, however, when I run python3 manage.py runserver, it returns this error, django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17).. I then check to see what version of SQLite3 is running on my python installation on my EC2 server by running sqlite3.sqlite_version, and it returns 3.7.17. So I then try to update SQLite3 using the default AWS EC2 Amazon Linux package manager, yum, by running yum install sqlite. It then returns this, Package sqlite-3.7.17-8.amzn2.1.1.x86_64 already installed and latest version, even though it is not the latest version. How can I install the latest version of SQLite3 to fix this?
I had the same problem. Since my app is very small with little dependency, I was able to quickly switch to EC2 sever running Ubuntu. It is necessary to learn how to use Ubuntu (apt).
You can find right now in the installation:
Package: sqlite3
Version: 3.31.1-4ubuntu0.2
I installed Python 3.2.3 in Debian /usr/local/bin/python3 and I installed Django 1.4 in the same directory. But when I try to import django from python 3 shell interpreter I get syntax error! What am I doing wrong?
There is no official release of Django that does it, but the guys here on bitbucket have been working on a port to python 3. Django will officially support python3 experimentally with version 1.5
Django does not support Python 3. You will need to install a version of Python 2.x.