Deploy Python Dash on IIS Server (Python Version??) - python

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.

Related

Upgrade python version in AWS Apache Airflow (MWAA)

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.

How to install Python 3.7 or 3.8 into OpenJDK docker container without building from source?

I want to use the official Flink image on Docker Hub (https://hub.docker.com/_/flink) for use with PyFlink (specifically the 1.14.4 version). That image is based on the openjdk:11-jre base image which is Debian 11.3.
Debian 11 does not seem to have Python 3.8 in its package repository (only 3.9). Is there a way of installing Python 3.7 or 3.8 into the OpenJDK image without building it from source? I can't use 3.9 as Flink does not support this yet.

Development using different version of Python

I'm developing a website using a server with Debian 8.10 (Jessie) as its OS and Python 3.4.2 (the supported Python version for Debian Jessie) while my notebook is using Ubuntu 16.04 and Python 3.5.2 (I think it's also the default version for Ubuntu 16.04). I was planning to build my website using Django 1.11 which both Python versions (3.4 and 3.5) support.
Is there any compatibility issues when I develop it using my Python 3.5.2 and deploy it to a Python 3.4.2 server? If any, how much the trouble it will be?
I know I can install any version of Python by adding someone's repository, but it seems unofficial so I avoid doing it. And there is a workaround that come to my mind: intall a specific version of Python by download its tarball file from the official website
Which will you recommend most?
Upgrade my server's Python version to 3.5.2 by adding someone's repo
Download Python 3.4.2's tarball and install it to my local machine
Upgrade my server's OS to Debian 9 Stretch which its default Python version is 3.5.3
Or any other better idea? Or perhaps you have a way to install specific Python version?
*I have some concern on security and safety
When you are working with different Python versions, it is recommended that you use some kind of virtual environment so each project has its own python version with its own modules that you need.
In this way, you can always keep each project with the Python version that you know it will work and with total compatibility with all the modules that you are using, making sure that any update to your working modules does not break anything in your past projects.
You should install a virtual environment in your local machine that matches the server machine and match the Python version and the modules that you have available, then start developing from there.
This space is a little bit too short to explain how to work with them, but you can find information about them here: https://docs.python.org/3/tutorial/venv.html
Optionally, you could use anaconda and its own version of enviroments, that may be simpler if you are familiar with conda

python version on python server

I use pyenv to manage python versions. I'm using Python 3.4.1 :: Anaconda 2.1.0 (x86_64), but in python cgi running on python server, python version seems to become 2.7.10.
How can I fix this to use version 3.4.1 on python server?
If you run python3 --version on the server, what version is it ? I'm making the assumption that you are using a newer version of Linux on the server which might be shipped with both a Python 2.7.x and Python 3.x version.
If not, you'll have to download and install it yourself, preferably into it's own location, as you do not wish to override the system version of Python that can be used for things such as package management.

Change Gunicorn/Virtualenv/Nginx python version

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!

Categories

Resources