Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 8.318.0 instead.

PYTHIA

PYTHIA is a program for the generation of high-energy physics collision events, i.e. for the description of collisions at high energies between electrons, protons, photons and heavy nuclei. It contains theory and models for a number of physics aspects, including hard and soft interactions, parton distributions, initial- and final-state parton showers, multiparton interactions, fragmentation and decay. It is largely based on original research, but also borrows many formulae and other knowledge from the literature. As such it is categorized as a general purpose Monte Carlo event generator.

Installation

The PYTHIA package is natively written in C++, which is the preferred interface. To work with PYTHIA via C++ go to the PYTHIA homepage and follow the instructions outlined there. The Python interface to PYTHIA can be installed directly via pip. Note that for this PyPI distribution of PYTHIA, the module name has been changed from pythia8 to pythia8mc as the pythia8 project name was unavailable. Outside of the PyPI distribution, the pythia8 module name is always used.

pip install pythia8mc

The interface is also available via conda.

conda install -c conda-forge pythia8

It is possible, and in many ways preferable, to build the Python interface directly from the PYTHIA C++ distribution (as well as update the Python bindings) using the configuration script.

wget https://pythia.org/download/pythia83/pythia8XXX.tgz
tar xvfz pythia8XXX.tgz
cd pythia8XXX
./configure --with-python
make

Usage

For a full description of usage, as well as examples, see the accompanying HTML manual for this version of PYTHIA.

The following imports the pythia8mc module and creates a Pythia instance.

import pythia8mc
pythia = pythia8mc.Pythia()

PYTHIA must then be configured and initialized, in this example to produce minimum bias events at the LHC.

pythia.readString("SoftQCD:all = on")
pythia.init()

Finally, we can produce an event, and explore the event record.

pythia.next()
for prt in pythia.event: print(prt.name())

Paths

PYTHIA requires the XML files which are used to build the HTML manual to define settings. Additionally, settings files for tunes are also distributed with PYTHIA. For the PyPI distribution, these files can be found along the relative path,

../../../share/Pythia8/xmldoc

with respect to the pythia8mc module library. By default, this path should be correctly set, but it can be printed as follows.

print(pythia8mc.__file__.rstrip("pythia8mc.so") + "../../../share/Pythia8/xmldoc")

The settings directory can be found in ../settings/ with respect to this folder. However, it is possible to overwrite the XML path by setting the environment variable PYTHIA8DATA,

export PYTHIA8DATA=<PYTHIA XML path> 

or by passing the XML path to the Pythia constructor.

pythia8mc.Pythia("<PYTHIA XML path>")

Metadata

Release files for pythia8mc 8.318.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pythia8mc 8.318.2
File
pythia8mc-8.318.2-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
pythia8mc-8.318.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details

Total release size: 302.4 MB

Release files / pythia8mc-8.318.2-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 29.6 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
a5013e3cee8d1a8d45680e43164927168629ed6f9b65286b028a5306fb02552e
BLAKE2b-256 checksum
How to use checksums
7481bbb3499201a766ccb2e211bbec6f223c566f2b4fc9b0ece6bca2c16ccc88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.2 MB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2a41c91c55bc0e37bbf56431d9a9834e3ced23f5cd2482ea86a4b07cefabba5b
BLAKE2b-256 checksum
How to use checksums
437f6caa939c3cd399ae8dcc512d285752e2dbe51a8d4442f6b8386964b8222c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.3 MB
Tags CPython 3.15 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
695f0154a72fea9d44157f5484a15dbcd5f582bb1197305a4d515c12ec2116b0
BLAKE2b-256 checksum
How to use checksums
3de3bacb38f4144d354cf535a46cf86eccaf9e808bf41ed88f58eb66f65b7c59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ba9fef7ecfe4a0415475618fdbf10d7827323098e4082236d33aa33a48a9f75b
BLAKE2b-256 checksum
How to use checksums
1af53def29c34603e43ca7a106037aa771f85fa7cf216ea4ca6f520b7fea87ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.3 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f6343c35cdc62d244c6560b70afe63d2e7addf793c734f957caec7b5f327d32f
BLAKE2b-256 checksum
How to use checksums
39abe6d4ae0fe8b9936a6a5485fd4bd6e8899b69895a3c106b90f2200815e896
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.3 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b036d6d4ae9ed02c732fa4d749239ddaaae55d7a9e0938b0761070796902da85
BLAKE2b-256 checksum
How to use checksums
f52c51f507be348f2e4c16ca5a68349492bb5fe86361ae8433cb677b80fd032a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.3 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c3d518341d710768a73d0a823049d1a4ccba7a39e4ca31deed0c0a0b9379109c
BLAKE2b-256 checksum
How to use checksums
27c4d8db527fa704ff0499c64cdf8b5ad0622bd1aad34d5f52e03ccb5da89f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b92f04c8b993e7e40e54027a613ed2ec6f4240dd0d77065ab17c4acab558bea1
BLAKE2b-256 checksum
How to use checksums
6d2376ea4b6af6fb266bcbe89fe5d839c5cdfab923a89766dc7686c5006091e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
45573f82d93a39142e26a5ba455a319cfd1458c88487a695628055a73a20529d
BLAKE2b-256 checksum
How to use checksums
b30e3c31fdef23167682e44187922b09fbe6b208ff0251865df66b96eeea7934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11

Release files / pythia8mc-8.318.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pythia8mc-8.318.2-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 30.3 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d8f3996b6b01acc1efcb275a51a2a4ea5fe2b5a6802d4c90f7200ffa2de7b509
BLAKE2b-256 checksum
How to use checksums
3e8637c9b7a48922018becb82f355496423fecc46ee215d853a47a197dc142fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.30.0 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page