pyenv-win-master\pyenv-win\libexec\pyenv-install.vbs(161, 5) Microsoft VBScript 运行时错误: 文件未找到
Windows 10 运行 pyenv install 3.11.2 提示 pyenv-win-master\pyenv-win\libexec\pyenv-install.vbs(161, 5) Microsoft VBScript 运行时错误: 文件未找到 解决问题
C:\Users\larry>pyenv --version pyenv 3.1.1
C:\Users\larry>pyenv install 3.11.2
:: [Info] :: Mirror: https://www.python.org/ftp/python
:: [Installing] :: 3.11.2 ...
D:\Program Files\pyenv-win-master\pyenv-win\libexec\pyenv-install.vbs(161, 5) Microsoft VBScript 运行时错误: 文件未找
出现该问题是因为使用了国内的阿里云镜像
修改文件 D:\Program Files\pyenv-win-master\pyenv-win\libexec\libs\pyenv-install-lib.vbs 中的mirror链接地址
Option Explicit ' Make sure to Import "pyenv-lib.vbs" before this file in a command. (for objfs/objweb variables) ' WScript.echo "kkotari: pyenv-install-lib.vbs..!" Dim mirror mirror = objws.Environment("Process")("PYTHON_BUILD_MIRROR_URL") If mirror = "" Then mirror = "https://npm.taobao.org/mirrors/python/" Const SFV_FileName = 0 Const SFV_URL = 1 Const SFV_Version = 2