when installing python 3.8.1 using pyenv-win getting the following output to terminal “error installing doc component MSI”

when installing python using pyenv getting installing “doc” component MSI error. I know it’s not the python version causing this as I have tried multiple python versions however, still getting errors do with MSI. The python version is compatible with pyenv and I have checked this using pyenv install — list.

Steps to reproduce the error

I have a PowerShell script to install the latest version of pyenv-win atm using (3.1.1) and add environment variables

pip install pyenv-win --target $HOME\\.pyenv --no-user --upgrade
#Adding PYENV, PYENV_HOME and PYENV_ROOT to your Environment Variables
[System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
[System.Environment]::SetEnvironmentVariable('PYENV_ROOT',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
[System.Environment]::SetEnvironmentVariable('PYENV_HOME',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
#Adding the following paths to your USER PATH variable in order to access the pyenv command
[System.Environment]::SetEnvironmentVariable('path', $env:USERPROFILE + "\.pyenv\pyenv-win\bin;" + $env:USERPROFILE + "\.pyenv\pyenv-win\shims;" + [System.Environment]::GetEnvironmentVariable('path', "User"),"User")
#check if pyenv installed
& pyenv --version

I know that pyenv-win has been successfully installed as I get the current version 3.1.1…

Leave a Reply