I'd be nice with a way to install packages on-demand from with-in scripts. Like this -------------------- import pip def install(package): if hasattr(pip, 'main'): pip.main(['install', package]) else: pip._internal.main(['install', package]) ... install('pillow') -------------------- Running this code via scripter fails with: ********************** locale.Error: unsupported locale setting In file: /tmp/.mount_krita-ymDKuy/usr/lib/python3.5/locale.py In function: setlocale at line: 594. Line with error: return _setlocale(category, locale) **********************
No, that's not going to work with appimages, ever: appimages are read-only, so the python home is not writable.
You are right, I completely overlooked that - sorry. As you know I found a way to patch appimages by re-packing them on Linux instead.
Which is cool :-)