How can I upgrade my python version in google datalab?
I tried already:
!pip install python --upgrade
And i get the response of "Requirement already up-to-date: python in /usr/lib/python2.7/lib-dynload", however if I type "!python2 --version" , I still get "Python 2.7.12"
You likely can't upgrade this using pip. You probably need to use apt-get, but I could be wrong here.
That said, Google Cloud Datalab currently uses an Ubuntu 16.04 (LTS) base image, and I think 2.7.12 might be the latest version that works with that OS. (Specifically it has 2.7.12-1ubuntu0~16.04.1, which is listed as the 16.04 version here: https://packages.ubuntu.com/search?keywords=python2.7 )
Please update datalab instance . You can use python3 in the new version.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.