Skip to content

Instantly share code, notes, and snippets.

@y-marui
Last active November 11, 2020 02:18
Show Gist options
  • Save y-marui/e6b8bacdf3f666c382f4bf6ddc4e96af to your computer and use it in GitHub Desktop.
Save y-marui/e6b8bacdf3f666c382f4bf6ddc4e96af to your computer and use it in GitHub Desktop.
pyenv-win with Anaconda

pyenv-win with Anaconda

Install Anaconda

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}"

Modify Path

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

See Also

Installing in silent mode — Anaconda documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment