Skip to content
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

[Ubuntu 24] Removal of Temporary Workaround for Pip Install on Python Default Environment from January 10 ,2025 #10897

Open
vidyasagarnimmagaddi opened this issue Nov 4, 2024 · 0 comments

Comments

@vidyasagarnimmagaddi
Copy link
Contributor

Breaking changes

Removal of Temporary Workaround for Pip Install on Python Default Environment for Ubuntu 24

  • Reverting the PR

Target date

The rollout will start on January 10 ,2025, and will take 3-4 days to propagate the image to all the environments

The motivation for the changes

From Python Version 3.12 , packages in the default environment are restricted from Modification.
More info: https://packaging.python.org/en/latest/specifications/externally-managed-environments/

Possible impact

Post implementation: Pip Install command will fail with Error Message: "Externally Managed"


× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.12/README.venv for more information.

### Platforms affected

- [X] Azure DevOps
- [X] GitHub Actions

### Runner images affected

- [ ] Ubuntu 20.04
- [ ] Ubuntu 22.04
- [X] Ubuntu 24.04
- [ ] macOS 12
- [ ] macOS 13
- [ ] macOS 13 Arm64
- [ ] macOS 14
- [ ] macOS 14 Arm64
- [ ] macOS 15
- [ ] macOS 15 Arm64
- [ ] Windows Server 2019
- [ ] Windows Server 2022

### Mitigation ways

Users are requested to use [actions/setup-python](https://github.com/actions/setup-python) action or can create a virtual env.
@vidyasagarnimmagaddi vidyasagarnimmagaddi self-assigned this Nov 4, 2024
@vidyasagarnimmagaddi vidyasagarnimmagaddi changed the title [Ubuntu 24] Removal of Temporary Workaround for Pip Install on Python Default Environment [Ubuntu 24] Removal of Temporary Workaround for Pip Install on Python Default Environment from January 10 ,2025 Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant