I'm encountering a segmentation fault when trying to use pip
inside a Python 3.6.8 virtual environment. The issue occurs when running basic pip
commands like pip --version
, pip install
, or pip list
. Here's my setup:
- Python version: 3.6.8 (installed with
pyenv
) - Pyenv version: 2.4.3
- OS: Ubuntu 24.04.1 LTS on a VMware virtual machine
Error:
$ pip --versionSegmentation fault (core dumped)$ pip install <package>Segmentation fault (core dumped)
Steps I’ve tried:
Recompiled Python 3.6.8 with the 16-byte alignment patch for pymalloc
.Upgraded pip
but faced the same issue.Created a fresh virtual environment multiple times.
Has anyone encountered this issue or know how to resolve it? Any help would be appreciated!