Skip to content

Latest commit

Β 

History

History
110 lines (79 loc) Β· 3.38 KB

File metadata and controls

110 lines (79 loc) Β· 3.38 KB

🐍 python3-binary

Binary files for Python 3.

GitHub all releases

πŸš€ Usage

This repository provides pre-built Python binaries for Linux. Follow the steps below to use them:

  1. πŸ“₯ Download the Binary
  • Navigate to the Releases section of this repository.
  • Download the appropriate binary archive for your desired Python version and architecture:
    • .tar.gz or .zip files for manual extraction
    • .deb files for Debian/Ubuntu systems
  1. πŸ“¦ Install the Binary

For Debian/Ubuntu systems (recommended):

# Download the .deb file and install
sudo dpkg -i python-<version>-linux-<arch>.deb

# Python will be installed to /opt/python-<version>/bin/
# You can use it directly:
/opt/python-<version>/bin/python3 --version
/opt/python-<version>/bin/pip3 --version

# Or add to your PATH for convenience:
export PATH="/opt/python-<version>/bin:$PATH"
python3 --version

For manual installation:

  • For .tar.gz files:

    tar -xvzf python-<version>-linux-<arch>.tar.gz
    tar -xvzf python-<version>-linux-<arch>.tar.gz -C /desired/path
  • For .zip files:

    unzip python-<version>-linux-<arch>.zip
    unzip python-<version>-linux-<arch>.zip -d /desired/path
  1. πŸ”§ Set Up Environment (Manual Installation Only)
  • Add the extracted binary directory to your PATH:

    export PATH=/desired/path/bin:$PATH
  • Verify the installation:

    python3 --version
  1. πŸ’» Start Using Python
  • Debian/Ubuntu users: Python is installed to /opt/python-<version>/ and can be used directly or added to PATH
  • Manual installation users: You can now use the custom Python binary for your projects.

πŸ—‘οΈ Uninstalling (Debian/Ubuntu)

To remove a Python version installed via deb package:

# List installed custom Python packages
dpkg -l | grep python.*custom

# Remove the package (replace with your specific version)
sudo dpkg -r python3.11-custom

# For glibc236 versions
sudo dpkg -r python3.11-custom-glibc236

πŸ› οΈ Building Your Own Custom Python Version

This repository provides a GitHub Actions workflow to build a custom Python version. Follow the steps below to build your own version:

  1. 🍴 Fork the Repository

    • Click the "Fork" button at the top-right corner of this repository to create your own copy.
  2. πŸ‘‰ Navigate to Actions

    • Go to the "Actions" tab in your forked repository.
  3. ▢️ Trigger the Workflow

    • Select the "Build and Release Python Binary" workflow from the list.
    • Click the "Run workflow" button.
    • Provide the desired Python version (e.g., 3.11.7) in the input field.
    • Click "Run workflow" to start the build process.
  4. ⏳ Wait for the Build to Complete

    • The workflow will compile the specified Python version with optimizations and create binary archives.
  5. πŸ“€ Download the Artifacts

    • Once the workflow completes, navigate to the "Actions" tab.
    • Select the completed workflow run.
    • Download the generated binary files from the "Artifacts" section.
  6. ✨ Use the Binary

    • Follow the instructions in the "Usage" section above to extract and use the custom Python binary.