首页 > 解决方案 > AWS Elastic Beanstalk CLI 安装错误

问题描述

需要一些帮助。

我正在安装 AWS Elastic Beanstalk CLI 并按照官方repo上的说明进行操作,但遇到以下错误:

$ ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer

==============================================
I. Installing Python
==============================================

*************************************************************
1. Determining whether pyenv is already installed and in PATH
*************************************************************
    - pyenv was not found in PATH.

*********************************************************
2. Determining whether pyenv should be cloned from GitHub
*********************************************************
    - pyenv git repository already cloned to /c/Users/HGG/.pyenv-repository. Won't attempt to clone again.

*******************************************
3. Temporarily export necessary pyenv paths
*******************************************

****************************************************************************
4. Checking whether Python can be downloaded (through curl, wget, or aria2c)
****************************************************************************

************************************************************
5. Installing Python 3.7.2. This step may take a few minutes
************************************************************
/c/Users/HGG/.pyenv-repository/bin/pyenv: line 1: ../libexec/pyenv: No such file or directory
   Exiting due to failure

我正在使用 Bash 并尝试卸载 Python 和 pip 无济于事。该文件../libexec/pyenv可以手动找到。

需要一些帮助的家伙。

谢谢。

标签: pythonamazon-web-servicespipamazon-elastic-beanstalkpyenv

解决方案


发现问题:我忘记在我的窗口中为所有用户安装 Python(这就是为什么 cmd > python --version 没有返回任何内容)并且还需要检查环境变量是否设置正确。

参考https://anthonydebarros.com/2018/06/21/setting-up-python-in-windows-10/


推荐阅读