the latest runtime version 1.4 of the Google machine learning engine supports Python 3.5:
https://cloud.google.com/ml-engine/docs/runtime-version-list
How do I use Python 3.5 for training models in the ML engine?
Thanks
The python_version works for me. Please note that python_version is a string. And also it only works with 1.4 runtime version.
trainingInput:
pythonVersion: '3.5'
scaleTier: BASIC
You can set the field pythonVersion as 3.5 in the TrainingInput. If you use gCloud, you can pass this flag in a yaml file and specify the flag --config=config.yaml assuming config.yaml is your yaml file name.
Related
I'm working on migrating a Python 2.7/1st Gen/GAE app to Python 3/2nd Gen/GAE.
My current step is replacing google.appengine.ext.deferred with the Python Client for Cloud Tasks API.
Here is where I'm at:
Still using Python 2.7
Latest updates with gcloud components update
Following the Python Client docs, I added google-cloud-tasks==1.5.0 to my requirements.txt
google-cloud-tasks needs grpcio so I added - name: grpcio\n version: latest to app.yaml
Now dev_appserver.py is giving me the error ImportError: No module named enum
I'm not finding much documentation online so I'm wondering... Is it possible to use google-cloud-tasks with Python 2.7 on app engine?
If so, how do I fix the last error above?
This is about GCP Deployment Manager Templates. Based on this documentation, a Python based deployment manager template must use Python 2.7.
Want to know:
Does this mean no support for Python 3?
Is a Python version upgrade planned?
Is there an ETA for Python 3 support?
1 Yeah, Python 3 is not supported on templates
2 In some courses, some google people say that it is planning but there is not a currently BETA version, I think.
We have an existing Django application which uses Django 1.11 and Python 3.6. For some security reasons I have been asked to use Python 3.7. I need to make the minimum changes possible. Do I need to upgrade Django as well? If so , is there any code changes required?
Thanks,
Python 3.7 compatibility was retrospectively added into the classifiers for Django v2.0 in this commit, even though v2.1 was already out. 1.11 was not included.
Discussion on Django tracker is here: https://code.djangoproject.com/ticket/28814
However, 1.11.x is LTS release series, so maybe if you're lucky that will still be added in a micro version upgrade at some later date.
Edit: Python 3.7 support was added in the micro version upgrade for Django 1.11.17 (2018-12-03, about 3 months after this question was originally asked)
According to this page on the Django docs, support for Python 3.7 was added in Django 1.11.17.
https://docs.djangoproject.com/en/1.11/faq/install/#what-python-version-can-i-use-with-django
"Django 1.11 requires Python 2.7, 3.4, 3.5, or 3.6. Django 1.11 is the first release to support Python 3.6. We highly recommend and only officially support the latest release of each series."
In the future, such questions are inevitably asked and answered in the Django docs.
How can I setup a Django 1.5.1 app running with Python 3.3 to access a MySQL database? I tried using MySQLdb but apparently it doesn't support Python 3.3.
My next intention was to use Connector/Python, but what am I supposed to put for the "Engine" key of the Databases dictionary of the settings.py file?
If someone could provide detailed steps of how to get Django to work with Connector/Python, that would be great!
MySQLdb is the Python interface to MySQL [supported by django]. Version 1.2.1p2 or later is required for full MySQL support in Django.
At the time of writing, the latest release of MySQLdb (1.2.4) doesn’t support Python 3. In order to use MySQL under Python 3, you’ll have to install an unofficial fork, such as MySQL-for-Python-3.
This port is still in alpha. In particular, it doesn’t support binary data, making it impossible to use django.db.models.BinaryField.
Basically your only options to avoid Alpha quality drivers are:
Don't use python 3.
Don't use MySQL.
Hopefully this makes the choice easier: http://grimoire.ca/mysql/choose-something-else
REF: https://docs.djangoproject.com/en/dev/ref/databases/#python-3
I have plans to upgrade my server.My major requirement is python django1.3 and postgres8.4
I am using Django 1.3 and python 2.6.5 currently.Since i want to upgrade the server I want to know whether django 1.3 supports python 2.7.2 ?
I have read the specification that 11.04 comes with python 2.7.1 and 11.10 comes with 2.7.2.
I know that django 1.3 supports 2.4 to 2.7 ? Since i don't want to take any risk on server I want to know whether django 1.3 supports python 2.7.1 or 2.7.2 or both.
Please specify how can i verify i have installed virtual env .I have multiple versions of django and python and they gave the error No module named django.core.management.
Thanks in advance
Django supports all versions of Python 2.7. Since 2.7.1 and 2.7.2 are minor versions of 2.7, Django will work with them.
We are using Django 1.3 and Python 2.7.2 at work for quite some time now, and have not faced any compatibility issues.
If you want to have multiple versions of python to be installed, it is better to use tools like pythonbrew (https://github.com/utahta/pythonbrew).
Regarding the error "No module named django.core.management", you might have installed django with one of your other versions of python. Again, Better to create virtual envs somewhere in your project directories(so they are easy to find), or Even better to use pythonbrew to manage virtual envs.