So I have my own version of the virtualenv prompt which seems to work well so I don't see why the default has to be so slow, but I assume it doesn't work in all cases or something?
But the main point is that I took only the PATH altering part of pyenv virtualenv-init - leaving out the prompt hook for activating local environments since I don't use them. It would be nice if I could use an official command like pyenv virtualenv-init --no-local - instead?
I have had a similar experience to many others (https://github.com/pyenv/pyenv-virtualenv/issues/411 https://github.com/pyenv/pyenv-virtualenv/issues/346 https://github.com/pyenv/pyenv-virtualenv/issues/265 https://github.com/pyenv/pyenv-virtualenv/issues/259) with pyenv-virtualenv being extremely slow
(note I have a 16 core 9900k, my machine is not the issue. from https://github.com/pyenv/pyenv-virtualenv/issues/259 it looks like this could be related to my antivirus)
To work around this I have made a few changes to my initialisation which may be slightly hacky but they at least give me a usable shell:
So I have my own version of the virtualenv prompt which seems to work well so I don't see why the default has to be so slow, but I assume it doesn't work in all cases or something?
But the main point is that I took only the
PATH
altering part ofpyenv virtualenv-init -
leaving out the prompt hook for activating local environments since I don't use them. It would be nice if I could use an official command likepyenv virtualenv-init --no-local -
instead?