René's URL Explorer Experiment


Title: pip is broken after downgrade on Windows pypy-3.11 · Issue #1348 · actions/setup-python · GitHub

Open Graph Title: pip is broken after downgrade on Windows pypy-3.11 · Issue #1348 · actions/setup-python

X Title: pip is broken after downgrade on Windows pypy-3.11 · Issue #1348 · actions/setup-python

Description: Description: When using the setup-python action with pypy-3.11 on Windows, installing a version of pip older than the version pre-installed by setup-python results in a completely broken pip. Here is an example workflow run that demonstr...

Open Graph Description: Description: When using the setup-python action with pypy-3.11 on Windows, installing a version of pip older than the version pre-installed by setup-python results in a completely broken pip. Here ...

X Description: Description: When using the setup-python action with pypy-3.11 on Windows, installing a version of pip older than the version pre-installed by setup-python results in a completely broken pip. Here ...

Opengraph URL: https://github.com/actions/setup-python/issues/1348

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pip is broken after downgrade on Windows pypy-3.11","articleBody":"**Description:**\nWhen using the `setup-python` action with `pypy-3.11` on Windows, installing a version of `pip` older than the version pre-installed by `setup-python` results in a completely broken `pip`. \n\nHere is an example workflow run that demonstrates the issue:\nhttps://github.com/bashonly/setup-python-pypy-pip-bug/actions/runs/30870303776\n\n**Action version:**\nreproducible on `v7.0.0`, `v6.3.0`, `v6.2.0`, possibly older versions\n\n**Platform:**\n- [x] Windows\n\n(not reproducible on Ubuntu)\n\n**Runner type:**\n- [x] Hosted\n\n**Tools version:**\npypy-3.11\n\n**Repro steps:**  \n1. Create a GHA workflow with a job that runs on `windows-latest`\n2. Add a step that uses `actions/setup-python` with `python-version: pypy-3.11`\n3. Add a step that downgrades pip, e.g. `python -m pip install \"pip==26.1.2\"`\n4. Add a step that attempts to use the downgraded pip, e.g. `python -m pip install requests`\n5. Run the workflow\n\nHere is a reproducer workflow:\n\nhttps://github.com/bashonly/setup-python-pypy-pip-bug/blob/47691675557d9cc18be1716fbdc2ba690852b9c3/.github/workflows/demo.yml\n\n\u003cdetails>\u003csummary>demo.yml\u003c/summary>\n\n```yaml\nname: PyPy pip bug MRE\non:\n  workflow_dispatch:\n\npermissions:\n  contents: read\n\njobs:\n  demonstrate:\n    name: Demonstrate PyPy pip issue\n    permissions:\n      contents: read\n    runs-on: windows-latest\n    steps:\n    - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0\n      with:\n        python-version: pypy-3.11\n    - name: Downgrade pip\n      run: |\n        python -m pip install \"pip==26.1.2\"\n    - name: Use pip\n      run: |\n        python -m pip install -U requests\n```\n\n\u003c/details>\n\n\n**Expected behavior:**\nThe downgraded pip should not be broken.\n\n**Actual behavior:**\nThe downgraded pip immediately raises an `ImportError` upon execution.\n\n\n**Analysis:**\n\nThe root cause seems to be `setup-python` unconditionally upgrading `pip` to the latest version using the `--ignore-installed pip` flag:\n\nhttps://github.com/actions/setup-python/blob/5fda3b95a4ea91299a34e894583c3862153e4b97/src/install-pypy.ts#L175-L183\n\nThe `--ignore-installed` option tells pip not to uninstall any existing version of the package, but instead to merely install on top of any existing packages. This seems to cause some confusion as to what version is actually installed, as evidenced by the `setup-python` output from the [example workflow run log](https://github.com/bashonly/setup-python-pypy-pip-bug/actions/runs/30870303776/job/91870770987):\n\n\u003cdetails>\u003csummary>setup-python log snippet\u003c/summary>\n\n```\n  Installing and updating pip\n  C:\\hostedtoolcache\\windows\\PyPy\\3.11.15\\x64\\python.exe -m ensurepip\n  Looking in links: c:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpz17a6bza\n  Processing c:\\users\\runner~1\\appdata\\local\\temp\\tmpz17a6bza\\setuptools-79.0.1-py3-none-any.whl\n  Processing c:\\users\\runner~1\\appdata\\local\\temp\\tmpz17a6bza\\pip-24.0-py3-none-any.whl\n  Installing collected packages: setuptools, pip\n    WARNING: The scripts pip3.11.exe and pip3.exe are installed in 'C:\\hostedtoolcache\\windows\\PyPy\\3.11.15\\x64\\Scripts' which is not on PATH.\n    Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\n  Successfully installed pip-24.0 setuptools-79.0.1\n  C:\\hostedtoolcache\\windows\\PyPy\\3.11.15\\x64\\python.exe -m pip install --ignore-installed pip\n  Collecting pip\n    Downloading pip-26.2-py3-none-any.whl.metadata (4.6 kB)\n  Downloading pip-26.2-py3-none-any.whl (1.8 MB)\n     ---------------------------------------- 1.8/1.8 MB 38.4 MB/s eta 0:00:00\n  Installing collected packages: pip\n    WARNING: The scripts pip.exe, pip3.11.exe and pip3.exe are installed in 'C:\\hostedtoolcache\\windows\\PyPy\\3.11.15\\x64\\Scripts' which is not on PATH.\n    Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\n  Successfully installed pip-24.0\n```\n\n\u003c/details>\n\nDuring the upgrade, pip knows it's installing version 26.2, but after installation is complete it reports that version 24.0 is installed. (pip 24.0 is the version that is bootstrapped with `ensurepip`.)\n\nIf we look at the \"Use pip\" step from [example workflow run log](https://github.com/bashonly/setup-python-pypy-pip-bug/actions/runs/30870303776/job/91870770987), we can see that our attempt to use pip 26.1.2 errors and emits the following traceback:\n```\n   File \"C:\\hostedtoolcache\\windows\\PyPy\\3.11.15\\x64\\Lib\\site-packages\\pip\\_internal\\cli\\main_parser.py\", line 11, in \u003cmodule>\n    from pip._internal.build_env import get_runnable_pip\n  File \"C:\\hostedtoolcache\\windows\\PyPy\\3.11.15\\x64\\Lib\\site-packages\\pip\\_internal\\build_env\\__init__.py\", line 8, in \u003cmodule>\n    from pip._internal.build_env.installer import (\n  File \"C:\\hostedtoolcache\\windows\\PyPy\\3.11.15\\x64\\Lib\\site-packages\\pip\\_internal\\build_env\\installer.py\", line 22, in \u003cmodule>\n    from pip._internal.utils.misc import get_runnable_pip\nImportError: cannot import name 'get_runnable_pip' from 'pip._internal.utils.misc' (C:\\hostedtoolcache\\windows\\PyPy\\3.11.15\\x64\\Lib\\site-packages\\pip\\_internal\\utils\\misc.py)\nError: Process completed with exit code 1.\n```\n\n`_internal\\build_env\\__init__.py` does not exist in `pip\u003c26.2`. This suggests that the file was left behind from the `pip` version 26.2 that was installed prior to the downgrade (possibly because the package metadata used to uninstall 26.2 actually belonged to version 24.0). It tries to import `get_runnable_pip` from `pip._internal.utils.misc`, but the function wasn't moved into that module until `pip` version 26.2, so the `ImportError` is raised.\n","author":{"url":"https://github.com/bashonly","@type":"Person","name":"bashonly"},"datePublished":"2026-08-04T02:50:17Z","url":"https://github.com/actions/setup-python/issues/1348"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:36e06215-3f79-c7f3-059f-d01f6ecd3a83
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idECA2:2E3FEE:4E94176:63259C5:6B02619A
html-safe-nonce05e36a333bae5ed8b4a2117ffbc805c7e9d663c9edf4fb52f7d7702ce0a29273
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0EyOjJFM0ZFRTo0RTk0MTc2OjYzMjU5QzU6NkIwMjYxOUEiLCJ2aXNpdG9yX2lkIjoiMTA0MTQ5MTc0OTU5MzMwOTU5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace38db5de456fb5e0c23a28680d87ccb549fbdd2db829aaed8b3d8eed8b0b5d1c
hovercard-subject-tagissue:5056152471
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/1348/issue_layout
twitter:imagehttps://opengraph.githubassets.com/17b71b900fe07d40033c04fcfb1004f35de78c01fe651e77e760fee35560ba94/actions/setup-python/issues/1348
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/17b71b900fe07d40033c04fcfb1004f35de78c01fe651e77e760fee35560ba94/actions/setup-python/issues/1348
og:image:altDescription: When using the setup-python action with pypy-3.11 on Windows, installing a version of pip older than the version pre-installed by setup-python results in a completely broken pip. Here ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebashonly
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/1348#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1348
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1348
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/issues/1348
Reloadhttps://github.com/actions/setup-python/issues/1348
Reloadhttps://github.com/actions/setup-python/issues/1348
actionshttps://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Codehttps://github.com/actions/setup-python
Issues37 (37)https://github.com/actions/setup-python/issues
Pull requests22 (22)https://github.com/actions/setup-python/pulls
Actionshttps://github.com/actions/setup-python/actions
Projectshttps://github.com/actions/setup-python/projects
Security and qualityhttps://github.com/actions/setup-python/security
Insightshttps://github.com/actions/setup-python/insights
https://github.com/actions/setup-python
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1348
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1348
pip is broken after downgrade on Windows pypy-3.11https://github.com/actions/setup-python/issues/1348#top
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/bashonly
bashonlyhttps://github.com/bashonly
on Aug 4, 2026https://github.com/actions/setup-python/issues/1348#issue-5056152471
https://github.com/bashonly/setup-python-pypy-pip-bug/actions/runs/30870303776https://github.com/bashonly/setup-python-pypy-pip-bug/actions/runs/30870303776
https://github.com/bashonly/setup-python-pypy-pip-bug/blob/47691675557d9cc18be1716fbdc2ba690852b9c3/.github/workflows/demo.ymlhttps://github.com/bashonly/setup-python-pypy-pip-bug/blob/47691675557d9cc18be1716fbdc2ba690852b9c3/.github/workflows/demo.yml
setup-python/src/install-pypy.tshttps://github.com/actions/setup-python/blob/5fda3b95a4ea91299a34e894583c3862153e4b97/src/install-pypy.ts#L175-L183
5fda3b9https://github.com/actions/setup-python/commit/5fda3b95a4ea91299a34e894583c3862153e4b97
example workflow run loghttps://github.com/bashonly/setup-python-pypy-pip-bug/actions/runs/30870303776/job/91870770987
example workflow run loghttps://github.com/bashonly/setup-python-pypy-pip-bug/actions/runs/30870303776/job/91870770987
bashonlyhttps://github.com/bashonly
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Aug 4, 2026https://github.com/actions/setup-python/issues/1348#event-28924014070
https://github.com/v-jitenderpalsingh
v-jitenderpalsinghhttps://github.com/v-jitenderpalsingh
on Aug 4, 2026https://github.com/actions/setup-python/issues/1348#issuecomment-5174703523
@bashonlyhttps://github.com/bashonly
v-jitenderpalsinghhttps://github.com/v-jitenderpalsingh
on Aug 4, 2026https://github.com/actions/setup-python/issues/1348#event-28927383951
v-jitenderpalsinghhttps://github.com/v-jitenderpalsingh
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Aug 4, 2026https://github.com/actions/setup-python/issues/1348#event-28927389859
bashonlyhttps://github.com/bashonly
on Aug 4, 2026https://github.com/actions/setup-python/issues/1348#event-28927945739
[ci] Fix broken Windows PyPy tests (#17347)https://github.com/yt-dlp/yt-dlp/commit/d798b9b8fbbcc9dd8d2b8df863bcddfa18362f5d
#17347https://github.com/yt-dlp/yt-dlp/pull/17347
d798b9bhttps://github.com/yt-dlp/yt-dlp/commit/d798b9b8fbbcc9dd8d2b8df863bcddfa18362f5d
https://github.com/v-jitenderpalsingh
v-jitenderpalsinghhttps://github.com/v-jitenderpalsingh
on Aug 12, 2026https://github.com/actions/setup-python/issues/1348#issuecomment-5263053949
@bashonlyhttps://github.com/bashonly
aalsuwaidihttps://github.com/aalsuwaidi
on Aug 21, 2026https://github.com/actions/setup-python/issues/1348#event-29800312200
Merge upstream master (yt-dlp/yt-dlp) into fork (#1)https://github.com/aalsuwaidi/yt-dlp/commit/31ab03e90c10f4061f5f82fba1b147742aab1b9a
#1https://github.com/aalsuwaidi/yt-dlp/pull/1
31ab03ehttps://github.com/aalsuwaidi/yt-dlp/commit/31ab03e90c10f4061f5f82fba1b147742aab1b9a
https://github.com/v-jitenderpalsingh
v-jitenderpalsinghhttps://github.com/v-jitenderpalsingh
on Aug 24, 2026https://github.com/actions/setup-python/issues/1348#issuecomment-5394286716
@bashonlyhttps://github.com/bashonly
https://github.com/bashonly
bashonlyhttps://github.com/bashonly
on Aug 24, 2026https://github.com/actions/setup-python/issues/1348#issuecomment-5401553483
https://github.com/v-jitenderpalsingh
v-jitenderpalsinghhttps://github.com/v-jitenderpalsingh
on Aug 28, 2026https://github.com/actions/setup-python/issues/1348#issuecomment-5450933406
@bashonlyhttps://github.com/bashonly
tcelyhttps://github.com/tcely
on Aug 29, 2026https://github.com/actions/setup-python/issues/1348#event-30214496864
chore: incorporate the changes from upstreamhttps://github.com/tcely/yt-dlp/commit/cc71bd8510b8d0f1a685d95dc9a85f3e3914e931
cc71bd8https://github.com/tcely/yt-dlp/commit/cc71bd8510b8d0f1a685d95dc9a85f3e3914e931
v-jitenderpalsinghhttps://github.com/v-jitenderpalsingh
on Sep 4, 2026https://github.com/actions/setup-python/issues/1348#event-30530360174
cursorhttps://github.com/apps/cursor
on Sep 30, 2026https://github.com/actions/setup-python/issues/1348#event-32204989550
ci: fix pip install on Windows PyPyhttps://github.com/juliosuas/arrow/commit/aed2194961382a9cb745877305e5ea35388a4d07
aed2194https://github.com/juliosuas/arrow/commit/aed2194961382a9cb745877305e5ea35388a4d07
https://github.com/bkeryan
bkeryanhttps://github.com/bkeryan
on Oct 30, 2026https://github.com/actions/setup-python/issues/1348#issuecomment-6533700444
https://pip.pypa.io/en/stable/user_guide/#using-pip-from-your-programhttps://pip.pypa.io/en/stable/user_guide/#using-pip-from-your-program
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/setup-python/issues/1348
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1348
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.