astral-sh / astral-sh/python-build-standalone
macOS venv creation via copy fails
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 314
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 27
Description
```
❯ python3.13 -m venv --copies venv --clear
Error: Command '['/Users/bgabor8/git/github/virtualenv/venv/bin/python3.13', '-m', 'ensurepip', '--upgrade', '--default-pip']' died with .
❯ venv/bin/python
dyld[94922]: Library not loaded: @executable_path/../lib/libpython3.13.dylib
Referenced from: <4C4C4407-5555-3144-A1FE-AA5FDFE2B24E> /Users/bgabor8/git/github/virtualenv/venv/bin/python
Reason: tried: '/Users/bgabor8/git/github/virtualenv/venv/lib/libpython3.13.dylib' (no such file)
fish: Job 1, 'venv/bin/python' terminated by signal SIGABRT (Abort)
```
Only happens on macOS, not Linux and Windows. Works when using symlink mode, unclear if related to https://github.com/astral-sh/python-build-standalone/issues/381
(This breaks the virtualenv test suite at https://github.com/pypa/virtualenv/actions/runs/16404089042/job/46347551787?pr=2904)
Contributor guide
Assessment
This issue has not been assessed yet.