python miniconda3 conda PEP-668
- Journal 2023-09-10 covers initial attempts to work around.
-
Journal 2023-10-14 covers an attempt to use
AppImage
. - Journal 2024-02-26 covers application to Ubuntu and python 3.10.
-
AppImage
crashes X11 randomly, leaving detached gvim processes, usually when Windows sleeps. -
Stackoverflow questions, What's the difference between dist-packages and site-packages?
points to a solution that works with the Debian version of vim: Use the
embedded python3 in vim to add the missing site-packages path.
if !has('nvim') && !empty($CONDA_PREFIX) && has('linux') let s:conda_env = '/miniconda3/envs/vim-python/lib/python3.11/site-packages' if isdirectory(expand("$LOCALAPPDATA" .. s:conda_env)) let s:conda_env = expand("$LOCALAPPDATA" .. s:conda_env) elseif isdirectory(expand("$HOME" .. s:conda_env)) let s:conda_env = expand("$HOME" .. s:conda_env) endif let s:conda_env = 'python3 site.addsitedir("' .. s:conda_env .. '")' python3 import site execute s:conda_env endif