简体   繁体   English

运行 Elastic Beanstalk CLI 时出现“FileNotFoundError: [Errno 2] No such file or directory”

[英]Got `FileNotFoundError: [Errno 2] No such file or directory` when running Elastic Beanstalk CLI

I've been using the Elastic Beanstalk CLI for a couple weeks, but all of a sudden I got the following error message when running eb create :我已经使用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

How do I fix this?我该如何解决? Note that I am using the CLI on macOS.请注意,我在 macOS 上使用 CLI。

I ended up fixing it by just uninstalling and reinstalling the Elastic Beanstalk CLI.我最终通过卸载并重新安装 Elastic Beanstalk CLI 来修复它。

To uninstall on macOS, just run rm -r ~/.ebcli-virtual-env .要在 macOS 上卸载,只需运行rm -r ~/.ebcli-virtual-env To reinstall on macOS, follow the official Quick Start instructions .要在 macOS 上重新安装,请按照官方快速入门说明进行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 `/home/webapp` 不是目录 - Elastic Beanstalk (RAILS) - `/home/webapp` is not a directory - Elastic Beanstalk (RAILS) 遇到 AWS Elastic BeanStalk 事件错误:清单文件有架构验证错误 - Running into AWS Elastic BeanStalk Event Error: Manifest file has schema validation errors AWS EB (Elastic Beanstalk) CLI 在 git bash 的命令行中不工作 - AWS EB ( Elastic Beanstalk) CLI not working in the command line of git bash 错误:无法打开需求文件:[Errno 2] 没有这样的文件或目录:'requirements.txt' 使用 AWS Lambda 和 Python 时 - ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' When using AWS Lambda and Python AWS:Elastic Beanstalk 和 Auto Scaling(内存不足时) - AWS: Elastic Beanstalk and Auto Scaling (When Out of Memory) 访问在 AWS Linux 上运行的 NGINX 配置中的 Elastic Beanstalk 环境属性 2 - Access Elastic Beanstalk environment properties in NGINX configs running on AWS Linux 2 bash:运行 dockerfile 时没有这样的文件或目录 - bash: No such file or directory when running a dockerfile Elastic Beanstalk:自定义 Puma 配置 - Elastic Beanstalk: customize Puma configuration 将 django 部署到 AWS Elastic Beanstalk - deploy django to AWS Elastic Beanstalk AWS Elastic Beanstalk 中的容器选项 - Container Options in AWS Elastic Beanstalk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM