-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Upgrade Python
3.11
#1844
Upgrade Python
3.11
#1844
Conversation
[3/7] RUN mamba install --quiet --yes 'altair' 'beautifulsoup4' 'bokeh' 'bottleneck' 'cloudpickle' 'conda-forge::blas=*=openblas' 'cython' 'dask' 'dill' 'h5py' 'ipympl' 'ipywidgets' 'matplotlib-base' 'numba' 'numexpr' 'openpyxl' 'pandas' 'patsy' 'protobuf' 'pytables' 'scikit-image' 'scikit-learn' 'scipy' 'seaborn' 'sqlalchemy' 'statsmodels' 'sympy' 'widgetsnbextension' 'xlrd' && mamba clean --all -f -y && fix-permissions "/opt/conda" && fix-permissions "/home/jovyan" [3/7] RUN mamba install --quiet --yes 'altair' 'beautifulsoup4' 'bokeh' 'bottleneck' 'cloudpickle' 'conda-forge::blas=*=openblas' 'cython' 'dask' 'dill' 'h5py' 'ipympl' 'ipywidgets' 'matplotlib-base' 'numba' 'numexpr' 'openpyxl' 'pandas' 'patsy' 'protobuf' 'pytables' 'scikit-image' 'scikit-learn' 'scipy' 'seaborn' 'sqlalchemy' 'statsmodels' 'sympy' 'widgetsnbextension' 'xlrd' && mamba clean --all -f -y && fix-permissions "/opt/conda" && fix-permissions "/home/jovyan" |
numba numba/numba#8304 |
I think we should wait for spark 3.4 before we upgrade |
That's a bit unfortunate, but I think you're right and we will have to wait until both numba and spark work fine? |
I can test that when #1845 is merged. |
Haha, I guess my PR came right on time 😂 |
@mathbunnyru Regarding |
@ benz0li
not sure if this is still current or not, the |
@parmentelat See #1812 (comment). There is only one issue remaining: numba/numba#8304. |
I merged main to this PR and removed |
tensorflow doesn't support python 3.11 https://stackoverflow.com/questions/74556733/tensorflow-support-for-python3-11 |
Here is a corresponding issue: tensorflow/tensorflow#58032 |
Also |
Apache spark will have a rc1 next week. Spark 3.4 have support for python 3.11 I can make a test run with Spark 3.4 rc1 and python 3.11 |
Spark 3.3.2 does not have support for python 3.11. |
Numba and TensorFlow issues about python 3.11 were closed. |
great, but Apache spark 3.4 will have another RC. So I think we need to wait one or two weeks. |
See the Release Candidate checklist for Numba 0.57.0rc1 at numba/numba#8841. |
This PR has just been merged 🎉 |
Tensorflow version 2.12.0 have support for python 3.11 https://github.com/tensorflow/tensorflow/releases/tag/v2.12.0 |
should we mamba insall pip in https://github.com/jupyter/docker-stacks/blob/main/tensorflow-notebook/Dockerfile |
In my experience, it's always better to use conda/mamba and not mix them with pip. |
@bjornjorgensen sorry for triggering CI so many times and making GitHub spam you - it was a really nice opportunity to test our new aarch64 runners 😂 |
Currently, I think we can proceed with pypi tensorflow. I also suppose, we will be able to build aarch64 |
ok, so you will merge this one now and start a new PR where we conda install pip && pip install tensorflow==2.12.* Ubuntu 22.04 Can't find libdevice directory ${CUDA_DIR}/nvvm/libdevice. Install NVCCconda install -c nvidia cuda-nvcc=11.3.58 Configure the XLA cuda directorymkdir -p $CONDA_PREFIX/etc/conda/activate.d Copy libdevice file to the required pathmkdir -p $CONDA_PREFIX/lib/nvvm/libdevice |
No, please, let's try use pip in this PR and if it works, I will merge it. |
I try to follow https://stackoverflow.com/questions/41060382/using-pip-to-install-packages-to-anaconda-environment |
a local test
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will merge when the tests pass.
ok, should we update the PR description? |
I think it's ok now. |
* Update Dockerfile * Update test_python.py * [TMP] Do not install numba * test with spark 3.4 rc2 * Update Dockerfile * install tf with pip in conda * remove mamba install pip * Update Dockerfile --------- Co-authored-by: Ayaz Salikhov <[email protected]> Co-authored-by: Ayaz Salikhov <[email protected]>
Describe your changes
Upgrade python from 3.10 to 3.11
Release notes
TensorFlow is now set to be installed using pip instead of mamba.
Issue ticket if applicable
Checklist (especially for first-time contributors)