I am on openmandriva linux and it runs python3,14. However, I am tryingto run comfyUI or any other image generation AI. The all seem to require older versions of python for some reason. Unfortunately after following the directions at https://tiltingatwindmills.dev/how-to-install-an-alternate-python-version/ and Setup and building no dice.
I get 4 errors on make test
4 re-run tests:
test__locale test_compileall test_float test_peg_generator
4 tests failed:
test__locale test_compileall test_float test_peg_generator
446 tests OK.
Total duration: 1 min 13 sec
Total tests: run=40,716 failures=4 skipped=2,017
Total test files: run=493/492 failed=4 skipped=39 resource_denied=3 rerun=4
Result: FAILURE then FAILURE
make: *** [Makefile:1954: test] Error 2
and from make alt install I get these errors:
Traceback (most recent call last):
File "<frozen zipimport>", line 558, in _get_data
File "<frozen zipimport>", line 513, in _get_decompress_func
zipimport.ZipImportError: can't decompress data; zlib not available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "<frozen runpy>", line 222, in run_module
File "<frozen runpy>", line 148, in _get_module_details
File "<frozen runpy>", line 112, in _get_module_details
File "<frozen zipimport>", line 137, in get_code
File "<frozen zipimport>", line 692, in _get_module_code
File "<frozen zipimport>", line 560, in _get_data
zipimport.ZipImportError: can't decompress data; zlib not available
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/bryce/Python-3.12.12/Lib/ensurepip/__main__.py", line 5, in <module>
sys.exit(ensurepip._main())
^^^^^^^^^^^^^^^^^
File "/home/bryce/Python-3.12.12/Lib/ensurepip/__init__.py", line 284, in _main
return _bootstrap(
^^^^^^^^^^^
File "/home/bryce/Python-3.12.12/Lib/ensurepip/__init__.py", line 200, in _bootstrap
return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bryce/Python-3.12.12/Lib/ensurepip/__init__.py", line 101, in _run_pip
return subprocess.run(cmd, check=True).returncode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bryce/Python-3.12.12/Lib/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/bryce/Python-3.12.12/python', '-W', 'ignore::DeprecationWarnin
g', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmpkyxrzd8b/pip-25.0.1-py3-none-any.whl\'] + sys.pat
h\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmpkyxrzd8b\', \'
--root\', \'/\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' re
turned non-zero exit status 1.
make: *** [Makefile:2038: altinstall] Error 1
but if I do sudo dnf install zlib I get:
Updating and loading repositories:
Repositories loaded.
Package "lib64z1-2.3.3-1.znver1" is already installed.
Nothing to do.