-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Python version to latest #2165
Comments
any update on this issue? Is there any plan/work going on to update to python 3.8 or 3.9? |
It's still on our radar; #1880 tracks an ubuntu update (which would bump python along the way). |
Do you know what is the expected date for this update? Is it Dec 26 as mentioned in the comment in the other issue?
|
No, it won't be on Dec 26. |
Is there any estimate for this? When can we roughly expect this?
|
@jasonkhadka No specific date. |
Hello, I was wondering if it would make sense to follow the Scientific Python SPEC-0000: https://scientific-python.org/specs/spec-0000/ Cheers, Thomas |
This issue is becoming really important, with many packages dropping Python 3.7 support, following the Numpy depreciation policy (NEP 29). Python 3.7 support was dropped on December 26th, 2021 for NumPy. Aside from NumPy 1.22+, Pandas 1.4+ and NetworkX 2.7+ also only support Python 3.8+. I would suggest adopting either Python 3.8 and 3.9 as soon as possible, to be able to use the latest versions of those packages. |
@colaboratory-team @blois @craigcitro @yilei and @katlyn-edwards, This issue becomes more and more pressing each week that passes. So much packages now require Python 3.8 support. It sucks being limited by the environment, it harms compatibility. Colab really needs an Python 3.8+ update, preferably directly to 3.9. |
As noted above, this is on our radar. I don't have a specific date to offer, unfortunately. |
We can now add SciPy 1.8+ and scikit-learn 1.1+ to that list. Soon it will be joined by matplotlib 3.6+, statsmodels 0.14+ and probably PyTorch 1.13+. Can we get a weekly update or something until the Python version is raised to at least 3.8? If it's the same effort, I would suggest leapfrogging to Ubuntu 22.04 LTS with Python 3.10. See #1880. But please do whatever is the fastest. |
One consideration is that Python 3.10 has significantly improved error messages, which improves user experience, especially for people new to Python. Python 3.11 is going to have some improvements in error messages too. |
+1 to updating to at least 3.8. The latest version of fairseq now fails to build because it requires numpy 1.23.3 (and thus python 3.8). This is incredibly inconvenient for ML dev |
Guessing this will never be updated... |
I suppose that and I changed Jupyter Notebook environment. I have no idea to help and encourage the maintainers so that they can update Python version. |
This really needs attention. Important packages are dropping support for 3.7 now. |
Pandas pickles in current versions are no longer compatible with the latest available Pandas for Python 3.7 |
What is the ETA for updating Python? Several libraries have dropped Python 3.7 like NumPy ( numpy/numpy#21558 ), Pandas ( pandas-dev/pandas#41989 ), and other projects following NEP 29. In conda-forge, we plan to drop Python 3.7 when adding Python 3.11 ( conda-forge/conda-forge-pinning-feedstock#2623 ), which is coming out Monday. |
Can @colaboratory-team @craigcitro @cperry-goog please provide an update on Python/Ubuntu upgrades? Last update regarding Python was 6 months ago from @craigcitro on Apr 24, 2022
And the last update on the related #1880 to upgrade Ubuntu was from @cperry-goog on Oct 14, 2021
|
Please update python to at least 3.9 :) |
Just in case, as of today, I get "Python 3.8.15" as default. |
It seems the update to Python 3.8 is done recently: #3246 |
how long will it take for 3.9 🙃 |
UPD 04/01/2022 I've updated it to what works for me currently. Just in case, here it goes how I've installed 3.10. It survives Runtime restarts (but not the deletion). All the searchable "solutions" were either irrelevant or incomplete/outdated as of today (so mine may become like that later on))) so I've updated the one that was the closest.
|
Colab is now on Python 3.8 (#3246) with plans to upgrade to Python 3.9+ in the future! |
Thanks Eric! 🙏 Christmas came early 🎁 |
This is great news, thank you! |
@PavelGorbanj : This just stalls here for me:
|
just checked, have the same issue as @KelSolaar Before, it worked perfectly... |
@unnir , @KelSolaar or anyone in the future - just in case, if I understand it correctly, the thread is not the support thread for the script I've posted. You're free to debug/update it to your particular needs (just like I did for mine) and I suppose others will be thankfull if you post what works for you |
This worked for me to install 3.9 on a 3.8 instance: !sudo apt-get update -y && sudo apt-get install python3.9 python3.9-dev python3.9-distutils libpython3.9-dev python3.9-venv
# Link python3 to 3.9.
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
# Install pip.
!curl -sS https://bootstrap.pypa.io/get-pip.py | python3.9
# Install your dependencies. Pin IPython and traitlets versions, as traitlets version 5.8 contains a breaking change that prevents google-colab server extension from working properly.
# Some of these packages may not be required.
!python3 -m pip install ipython==7.9.0 traitlets==5.7.1 jupyter psutil setuptools ipython_genutils ipykernel jupyter_console prompt_toolkit httplib2 astor
# Copy the already installed `google-colab` package over. It depends on an _old version_ of pandas, so building the wheel won't work.
!ln -s /usr/local/lib/python3.8/dist-packages/google \
/usr/local/lib/python3.9/dist-packages/google
# Reinstall jupyter server extension.
!jupyter serverextension list
!jupyter notebook --config=/usr/local/etc/jupyter/jupyter_notebook_config.json Restart your runtime, then run: import sys
print(sys.version) It should output something like: 3.9.16 ... Please note that this may not work tomorrow or the next day, as this is just a hack. Hopefully the Colab team could learn from some of the migration challenges that we get around with some of these hacks 🤷. I am only posting this to share support for those who are eager to work with 3.9 like I am 😄 |
@metrizable Good to know. We're on 3.11 now so — will have to keep waiting. |
Currently it is impossible to use a Python version other than the one currently offered, making it impossible to share anything written for later versions of Python (e.g., currently 3.8 and 3.9).
It should be possible to select from several Python version, up through the latest stable release, at least; or to be able to install an arbitrary Python.
The text was updated successfully, but these errors were encountered: