Background
Hi, my main goal is to create a virtualenv
for a number of projects that use older versions of python, which are separate from the system version (3.10.x). I'm using PopOS 22.04, with all updates.
I can't even use pip because of this error. I also read around, but all of the solutions I read either output a log file, or some other indication of what went wrong. Whereas I have nothing but Segmentation fault (core dumped)
in the terminal.
I tried doing the above with pyenv
before this, but it had so many bugs that I got sick of it after 20+ hours... This is also my first time installing anything from source, but I did read the README.
Exact steps followed
- I downloaded and installed python 3.5.2 from source from https://www.python.org/downloads/release/python-352/
- Extract folder in
~/Downloads/
cd Python-3.5.2/
./configure
make
sudo make altinstall
cd ../../Desktop/
whereis python3.5
# outputs /usr/local/bin/python3.5
virtualenv my_venv -p /usr/local/bin/python3.5
source my_venv/bin/activate
# activates (my_venv)
python
# opens python 3.5.2 shell, not the system's 3.10.x
quit()
pip -h
- Response is merely:
Segmentation fault (core dumped)
... That's it. no indication of a log file anywhere to trace it back, nothing. Trying to install anything gives the same response. I even ransudo apt install python3-pip
, and get the following answer for that:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (22.0.2+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I also tried...
I also tried the above with python3.7.5, but this time I ran make test
before doing the install.
It's currently showing this in the terminal: running: test_faulthandler (1 hour 6 min)
.
And I noticed some people say it can go for a couple hours, but doing this can help find some issues, and patch them or whatever. I'll wait it out to see what happens, but...
Does anyone have any experience in this / know what to do???
Thanks!