In order to test a fresh version of a Python app, I need to install the last stable version of Python on my OpenSuSE 15.4 machine /* which by default comes with Python 3.6 */. So I downloaded Python 3.10.11 and built it. make install
did work, but the next command did not because of a missing msvcrt
module:
╭─jacek@epica ~/bin/tmp/Python-3.10.11/dist/bin
╰─➤ ./python3 -m pip install --upgrade pip
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
File "/home/jacek/bin/tmp/Python-3.10.11/dist/lib/python3.10/subprocess.py", line 69, in <module>
import msvcrt
ModuleNotFoundError: No module named 'msvcrt'
Is the missing module really the interfact to the M$ Visual C++ runtime? If yes, why is it required when installing Python on a Linux machine?? There is apparently only one flavor of source tarball (albeit in 2 different archive formats) on the Python website. The python home / dir variables are not set at all, BTW:
╭─jacek@epica ~/bin/tmp/Python-3.10.11/dist/bin
╰─➤ echo $PYTHONHOME 1 ↵
╭─jacek@epica ~/bin/tmp/Python-3.10.11/dist/bin
╰─➤ echo $PYTHONPATH
╭─jacek@epica ~/bin/tmp/Python-3.10.11/dist/bin
╰─➤
Setting the python home dir manually (in my case: /home/jacek/bin/tmp/Python-3.10.11/dist
) doesn’t help, though.