-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Update installation instructions in pip.md to address PEP 668 compliance for Windows WSL2 with Ubuntu 24.04 or later. #2345
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
Conversation
...nce for Windows WSL2 with Ubuntu 24.04 or later.
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.
Thanks for the PR!
I don't have enough context on this.
Please let other reviewers review.
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.
@MarkDaoust @markmcd PTAL thank you!
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.
Makes sense... I don't have a Windows box handy.. are we sure this install is necessary? isn't venv
part of the base python installation?
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.
Hi, Team
This PR will addresse the issue of outdated installation instructions for Windows WSL2 on the TensorFlow Pip Installation Guide.
Problem :
The existing instructions do not account for the changes introduced in
Ubuntu 24.04
which enforcesPEP 668
. This specification treats Python environments as externally managed deprecating global installations of Python packages via pip.The command
python3 -m pip install tensorflow[and-cuda]
no longer works on Ubuntu 24.04. User encounter theexternally-managed-environment
error unless they create and use a virtual environment.The installation instructions have been updated to include steps for creating and using a virtual environment when working with TensorFlow on Ubuntu 24.04 or later. The steps ensure compatibility and compliance with PEP 668.
Updated Instructions :
For Ubuntu 24.04 in WSL2 the following steps are required to set up TensorFlow with CUDA:
For more information please refer this issue tensorflow/tensorflow#79370 (comment) and it will fix that issue tensorflow/tensorflow#79370
if you've any feedback or suggestions for these changes please feel free to let me know. Thank you.