10:27:34 ~ -1- $ pyenv install 3.10.1 Downloading Python-3.10.1.tar.xz... -> https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tar.xz Installing Python-3.10.1... ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib? Please consult to the Wiki page to fix the problem. https://github.com/pyenv/pyenv/wiki/Common-build-problems BUILD FAILED (LinuxMint 17 using python-build 20180424) Inspect or clean up the working tree at /tmp/python-build.20230327102740.8717 Results logged to /tmp/python-build.20230327102740.8717.log Last 10 log lines: Installing collected packages: setuptools, pip WARNING: Value for scheme.headers does not match. Please report this to distutils: /home/ychaouche/.pyenv/versions/3.10.1/include/python3.10/setuptools sysconfig: /tmp/python-build.20230327102740.8717/Python-3.10.1/Include/setuptools WARNING: Value for scheme.headers does not match. Please report this to distutils: /home/ychaouche/.pyenv/versions/3.10.1/include/python3.10/pip sysconfig: /tmp/python-build.20230327102740.8717/Python-3.10.1/Include/pip WARNING: The scripts pip3 and pip3.10 are installed in '/home/ychaouche/.pyenv/versions/3.10.1/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed pip-21.2.4 setuptools-58.1.0 10:29:27 ~ -1- $ pyenv shell 3.10.1 pyenv: shell integration not enabled. Run `pyenv init' for instructions. 10:30:42 ~ -1- $ pyenv init # See the README for instructions on how to set up # your shell environment for Pyenv. 10:30:48 ~ -1- $ ls .pyenv/version version versions/ 10:30:48 ~ -1- $ ls .pyenv/versions/ total 0 10:31:29 ~ -1- $ cat .pyenv/version 2.7.9 10:31:36 ~ -1- $ 11:13:41 /tmp/python-build.20230327102740.8717/Python-3.10.1 -1- $ ./python Python 3.10.1 (main, Mar 27 2023, 10:28:48) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.version '3.10.1 (main, Mar 27 2023, 10:28:48) [GCC 4.8.4]' >>> sys sys >>> sys. sys.abiflags sys.excepthook( sys.getrecursionlimit() sys.orig_argv sys.setswitchinterval( sys.addaudithook( sys.exec_prefix sys.getrefcount( sys.path sys.settrace( sys.api_version sys.executable sys.getsizeof( sys.path_hooks sys.stderr sys.argv sys.exit( sys.getswitchinterval() sys.path_importer_cache sys.stdin sys.audit( sys.flags sys.gettrace() sys.platform sys.stdlib_module_names sys.base_exec_prefix sys.float_info sys.hash_info sys.platlibdir sys.stdout sys.base_prefix sys.float_repr_style sys.hexversion sys.prefix sys.thread_info sys.breakpointhook( sys.get_asyncgen_hooks() sys.implementation sys.ps1 sys.unraisablehook( sys.builtin_module_names sys.get_coroutine_origin_tracking_depth() sys.int_info sys.ps2 sys.version sys.byteorder sys.getallocatedblocks() sys.intern( sys.pycache_prefix sys.version_info sys.call_tracing( sys.getdefaultencoding() sys.is_finalizing() sys.set_asyncgen_hooks( sys.warnoptions sys.copyright sys.getdlopenflags() sys.maxsize sys.set_coroutine_origin_tracking_depth( sys.displayhook( sys.getfilesystemencodeerrors() sys.maxunicode sys.setdlopenflags( sys.dont_write_bytecode sys.getfilesystemencoding() sys.meta_path sys.setprofile( sys.exc_info() sys.getprofile() sys.modules sys.setrecursionlimit( >>> sys.modules {'sys': , 'builtins': , '_frozen_importlib': , '_imp': , '_thread': , '_warnings': , '_weakref': , '_io': , 'marshal': , 'posix': , '_frozen_importlib_external': , 'time': , 'zipimport': , '_codecs': , 'codecs': , 'encodings.aliases': , 'encodings': , 'encodings.utf_8': , '_signal': , '_abc': , 'abc': , 'io': , '__main__': , '_stat': , 'stat': , '_collections_abc': , 'genericpath': , 'posixpath': , 'os.path': , 'os': , '_sitebuiltins': , 'site': , 'readline': , 'atexit': , '_ast': , 'itertools': , 'keyword': , '_operator': , 'operator': , 'reprlib': , '_collections': , 'collections': , 'types': , '_functools': , 'functools': , 'contextlib': , 'enum': , 'ast': , '_opcode': , 'opcode': , 'dis': , 'collections.abc': , 'importlib._bootstrap': , 'importlib._bootstrap_external': , 'warnings': , 'importlib': , 'importlib.machinery': , '_sre': , 'sre_constants': , 'sre_parse': , 'sre_compile': , '_locale': , 'copyreg': , 're': , 'token': , 'tokenize': , 'linecache': , 'inspect': , 'rlcompleter': } >>> len(sys.modules) 69 >>> sys.modules[0] Traceback (most recent call last): File "", line 1, in KeyError: 0 >>> sys.modules.keys >>> sys.modules.keys() dict_keys(['sys', 'builtins', '_frozen_importlib', '_imp', '_thread', '_warnings', '_weakref', '_io', 'marshal', 'posix', '_frozen_importlib_external', 'time', 'zipimport', '_codecs', 'codecs', 'encodings.aliases', 'encodings', 'encodings.utf_8', '_signal', '_abc', 'abc', 'io', '__main__', '_stat', 'stat', '_collections_abc', 'genericpath', 'posixpath', 'os.path', 'os', '_sitebuiltins', 'site', 'readline', 'atexit', '_ast', 'itertools', 'keyword', '_operator', 'operator', 'reprlib', '_collections', 'collections', 'types', '_functools', 'functools', 'contextlib', 'enum', 'ast', '_opcode', 'opcode', 'dis', 'collections.abc', 'importlib._bootstrap', 'importlib._bootstrap_external', 'warnings', 'importlib', 'importlib.machinery', '_sre', 'sre_constants', 'sre_parse', 'sre_compile', '_locale', 'copyreg', 're', 'token', 'tokenize', 'linecache', 'inspect', 'rlcompleter']) >>> 11:15:00 /tmp/python-build.20230327102740.8717/Python-3.10.1 -1- $ ls total 56M -rw-r--r-- 1 ychaouche ychaouche 23K Dec 6 2021 aclocal.m4 drwxr-xr-x 5 ychaouche ychaouche 4.0K Mar 27 10:29 build -rw-r--r-- 1 ychaouche ychaouche 630 Dec 6 2021 CODE_OF_CONDUCT.md -rwxr-xr-x 1 ychaouche ychaouche 49K Dec 6 2021 config.guess -rw-r--r-- 1 ychaouche ychaouche 757K Mar 27 10:28 config.log -rwxr-xr-x 1 ychaouche ychaouche 43K Mar 27 10:28 config.status -rwxr-xr-x 1 ychaouche ychaouche 35K Dec 6 2021 config.sub -rwxr-xr-x 1 ychaouche ychaouche 513K Dec 6 2021 configure -rw-r--r-- 1 ychaouche ychaouche 175K Dec 6 2021 configure.ac drwxr-xr-x 18 ychaouche ychaouche 4.0K Dec 6 2021 Doc drwxr-xr-x 2 ychaouche ychaouche 4.0K Dec 6 2021 Grammar drwxr-xr-x 4 ychaouche ychaouche 4.0K Dec 6 2021 Include -rwxr-xr-x 1 ychaouche ychaouche 16K Dec 6 2021 install-sh drwxr-xr-x 35 ychaouche ychaouche 4.0K Mar 27 10:28 Lib -rw-r--r-- 1 ychaouche ychaouche 35M Mar 27 10:28 libpython3.10.a -rw-r--r-- 1 ychaouche ychaouche 14K Dec 6 2021 LICENSE drwxr-xr-x 8 ychaouche ychaouche 4.0K Dec 6 2021 Mac -rw-r--r-- 1 ychaouche ychaouche 81K Mar 27 10:28 Makefile -rw-r--r-- 1 ychaouche ychaouche 72K Mar 27 10:28 Makefile.pre -rw-r--r-- 1 ychaouche ychaouche 72K Dec 6 2021 Makefile.pre.in drwxr-xr-x 2 ychaouche ychaouche 4.0K Mar 27 10:28 Misc drwxr-xr-x 14 ychaouche ychaouche 4.0K Mar 27 10:28 Modules -rw-r--r-- 1 ychaouche ychaouche 82 Dec 6 2021 netlify.toml drwxr-xr-x 4 ychaouche ychaouche 4.0K Mar 27 10:28 Objects drwxr-xr-x 2 ychaouche ychaouche 4.0K Mar 27 10:28 Parser drwxr-xr-x 5 ychaouche ychaouche 4.0K Dec 6 2021 PC drwxr-xr-x 2 ychaouche ychaouche 4.0K Dec 6 2021 PCbuild drwxr-xr-x 2 ychaouche ychaouche 4.0K Mar 27 10:28 Programs -rw-r--r-- 1 ychaouche ychaouche 27 Mar 27 10:28 pybuilddir.txt -rw-r--r-- 1 ychaouche ychaouche 48K Mar 27 10:28 pyconfig.h -rw-r--r-- 1 ychaouche ychaouche 46K Dec 6 2021 pyconfig.h.in -rwxr-xr-x 1 ychaouche ychaouche 19M Mar 27 10:28 python drwxr-xr-x 3 ychaouche ychaouche 4.0K Mar 27 10:28 Python -rw-r--r-- 1 ychaouche ychaouche 3.1K Mar 27 10:28 python-config -rw-r--r-- 1 ychaouche ychaouche 2.1K Mar 27 10:28 python-config.py -rw-r--r-- 1 ychaouche ychaouche 65K Mar 27 10:28 python-gdb.py -rw-r--r-- 1 ychaouche ychaouche 10K Dec 6 2021 README.rst -rw-r--r-- 1 ychaouche ychaouche 114K Dec 6 2021 setup.py drwxr-xr-x 23 ychaouche ychaouche 4.0K Dec 6 2021 Tools 11:15:02 /tmp/python-build.20230327102740.8717/Python-3.10.1 -1- $