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

Fix Python externally managed issue on Ubuntu 24.04 #11234

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Karinza38
Copy link

@Karinza38 Karinza38 commented Dec 22, 2024

Fixes #10781

Add a non-externally managed Python interpreter to the ubuntu-24.04 runner image to avoid pip installation errors.

  • Template Update

    • Add a provisioner in images/ubuntu/templates/ubuntu-24.04.pkr.hcl to install a stand-alone Python interpreter.
    • Update environment variables to include the new Python path.
  • Toolset Update

    • Specify non-externally managed Python installations in images/ubuntu/toolsets/toolset-2404.json.
  • Documentation Update

    • Document the inclusion of a non-externally managed Python interpreter in images/ubuntu/Ubuntu2404-Readme.md.
    • Note the resolution of pip installation errors.

For more details, open the Copilot Workspace session.

Fixes actions#10781

Add a non-externally managed Python interpreter to the `ubuntu-24.04` runner image to avoid pip installation errors.

* **Template Update**
  - Add a provisioner in `images/ubuntu/templates/ubuntu-24.04.pkr.hcl` to install a stand-alone Python interpreter.
  - Update environment variables to include the new Python path.

* **Toolset Update**
  - Specify non-externally managed Python installations in `images/ubuntu/toolsets/toolset-2404.json`.

* **Documentation Update**
  - Document the inclusion of a non-externally managed Python interpreter in `images/ubuntu/Ubuntu2404-Readme.md`.
  - Note the resolution of pip installation errors.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/actions/runner-images/issues/10781?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python 3.12 on Ubuntu 24.04 is Externally Managed - PIP is broken
1 participant