Skip to content

venv module creates unexpected symlink with non-ASCII name (𝜋thon) #155595

Description

@BrianKimurgor

Bug report

Bug description:

venv.EnvBuilder.setup_python() in Lib/venv/__init__.py includes a symlink
suffix that uses a Unicode mathematical italic pi character instead of the
letter "p":

suffixes.append('𝜋thon')

As a result, every virtual environment created with python3 -m venv gets an
extra symlink named 𝜋thon (U+1D745 MATHEMATICAL ITALIC SMALL PI + "thon"),
pointing at the real python3 binary, alongside the normal python /
python3 / python3.X symlinks.

Minimal reproduction:

​```python

no Python code needed — reproduces from the shell:

python3 -m venv testenv

ls -la testenv/bin/ | grep -P '[^\x00-\x7F]'

-> shows: 𝜋thon -> python3

​```

Expected: only the standard ASCII-named symlinks (python, python3,
python3.X) should be created in a venv's bin/ directory.

Confirmed this originates from the venv module itself, not from pip or any
post-install step — it appears in a freshly created venv before any packages
are installed.

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions