Binary files for Python 3.
This repository provides pre-built Python binaries for Linux. Follow the steps below to use them:
- π₯ Download the Binary
- Navigate to the Releases section of this repository.
- Download the appropriate binary archive for your desired Python version and architecture:
.tar.gzor.zipfiles for manual extraction.debfiles for Debian/Ubuntu systems
- π¦ 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 --versionFor manual installation:
-
For
.tar.gzfiles:tar -xvzf python-<version>-linux-<arch>.tar.gz
tar -xvzf python-<version>-linux-<arch>.tar.gz -C /desired/path
-
For
.zipfiles:unzip python-<version>-linux-<arch>.zip
unzip python-<version>-linux-<arch>.zip -d /desired/path
- π§ 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
- π» 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.
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-glibc236This repository provides a GitHub Actions workflow to build a custom Python version. Follow the steps below to build your own version:
-
π΄ Fork the Repository
- Click the "Fork" button at the top-right corner of this repository to create your own copy.
-
π Navigate to Actions
- Go to the "Actions" tab in your forked repository.
-
βΆοΈ 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.
-
β³ Wait for the Build to Complete
- The workflow will compile the specified Python version with optimizations and create binary archives.
-
π€ 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.
-
β¨ Use the Binary
- Follow the instructions in the "Usage" section above to extract and use the custom Python binary.