Skip to content

Official Portable Python Distribution #135011

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

Closed
cos4ni2s opened this issue Jun 1, 2025 · 5 comments
Closed

Official Portable Python Distribution #135011

cos4ni2s opened this issue Jun 1, 2025 · 5 comments
Labels

Comments

@cos4ni2s
Copy link

cos4ni2s commented Jun 1, 2025

Feature or enhancement

Proposal:

An official portable Python distribution would provide a plug-and-play, self-contained interpreter that can be extracted, used, and disposed without the overhead of the traditional installer. Key benefits include:

  • Friendliness: Facilitates deployment (a simple .zip extraction), and removal (a simple delete folder operation).
  • Mobility: Easily carried on USB drives or external hard drives.
  • Accessibility: Allows usage in restricted environments without additional permissions or system-level changes.
  • Control: Prevents scattered, system-wide files and registry entries created by the traditional installer, avoiding hard-to-track leftovers.
  • Manageability: All dependencies, libraries, and installed packages remain contained within a single folder.

This would lower the barrier to entry for many potential users—students and teachers in particular—by promoting no-cost exploration and experimentation.

Implementation:
A practical first step would be to build on the existing embeddable distribution by bundling pip and enabling support for environment variables like PYTHONPATH. This would blend the embeddable build’s isolation with the full-featured usability expected in a portable end-user package.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

@cos4ni2s cos4ni2s added the type-feature A feature request or enhancement label Jun 1, 2025
@picnixz
Copy link
Member

picnixz commented Jun 1, 2025

Hi, this kind of feature needs to be discussed first on https://discuss.python.org/c/ideas/6 and I'm pretty sure that there already exists a topic on having a portable installation. I'm not sure it's possible to do it though as there are many requirements that depend on the host platform and that cannot be carried over.

I also don't think the current installer is problematic. For Windows we have a new installer now, and for Unix-based systems, it's pretty much a matter of an apt install or something similar.

@picnixz picnixz closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2025
@picnixz picnixz added invalid and removed type-feature A feature request or enhancement labels Jun 1, 2025
@cos4ni2s
Copy link
Author

cos4ni2s commented Jun 1, 2025

I also don't think the current installer is problematic.

An installer inherently creates system-wide files and directories, that should be (manually) identified removed when you finish your job.
In a portable distribution, you just remove a single folder a voilà; the system is back to how it was.

@picnixz
Copy link
Member

picnixz commented Jun 1, 2025

An installer inherently creates system-wide files and directories, that should be (manually) identified removed when you finish your job.

In this case, I'd suggest using docker.

@picnixz
Copy link
Member

picnixz commented Jun 1, 2025

And you can avoid this by building from source and install wherever you want. You can then simply delete this folder.

@cos4ni2s
Copy link
Author

cos4ni2s commented Jun 1, 2025

And you can avoid this by building from source and install wherever you want. You can then simply delete this folder.

This is a feature request for the whole Python user-base; with the goal of making Python significatly better.
I invite you to give it a think a mention it to the board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy