Find version in Anaconda installer archive and download ${vname}-Windows-${architecture}.exe
.
Open PowerShell at Download and install with command.
start ${vname}-Windows-${architecture}.exe "/InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /S /D=$env:PYENV\versions\${vname}"
Anaconda has different directory structure from normal python.
In pyenv-win/libexec/pyenv.vbs
, change
str = "set PATH="& dstr &";%PATH:&=^&%"& vbCrLf
to
str = "set PATH="& dstr &";"& dstr &"\Library\bin;%PATH:&=^&%"& vbCrLf