【问题标题】:Got `FileNotFoundError: [Errno 2] No such file or directory` when running Elastic Beanstalk CLI运行 Elastic Beanstalk CLI 时出现“FileNotFoundError: [Errno 2] No such file or directory”
【发布时间】:2022-12-24 04:34:31
【问题描述】:

我已经使用 Elastic Beanstalk CLI 几个星期了,但是在运行 eb create 时突然收到以下错误消息:

Traceback (most recent call last):
  File "/Users/elias/.ebcli-virtual-env/executables/eb", line 45, in <module>
    exit(_exec_cmd(['/Users/elias/.ebcli-virtual-env/bin/eb'] + sys.argv[1:]))
  File "/Users/elias/.ebcli-virtual-env/executables/eb", line 25, in _exec_cmd
    p = subprocess.Popen(args)
  File "/Users/elias/.pyenv/versions/3.10.9/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Users/elias/.pyenv/versions/3.10.9/lib/python3.10/subprocess.py", line 1847, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: '/Users/elias/.ebcli-virtual-env/bin/eb

我该如何解决?请注意,我在 macOS 上使用 CLI。

【问题讨论】:

    标签: amazon-elastic-beanstalk file-not-found ebcli


    【解决方案1】:

    我最终通过卸载并重新安装 Elastic Beanstalk CLI 来修复它。

    要在 macOS 上卸载,只需运行rm -r ~/.ebcli-virtual-env。 要在 macOS 上重新安装,请遵循 official Quick Start instructions

    【讨论】:

      猜你喜欢
      • 2023-03-06
      • 2012-08-25
      • 2022-01-24
      • 1970-01-01
      • 1970-01-01
      • 2018-03-07
      • 1970-01-01
      • 2019-10-14
      相关资源
      最近更新 更多