1

我正在尝试在 amazon linux 实例上使用弹性 beanstalk cli,但我总是收到 zlib 模块错误。这可能更多地与我对 linux/unix 的无知有关,但请发送您的任何输入。

$ eb 初始化

Traceback (most recent call last):
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/eb", line                                                                              17, in <module>
    from scli import core
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/scli/core                                                                             .py", line 24, in <module>
    from scli import command, cli_parse, config_file, prompt
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/scli/comm                                                                             and.py", line 18, in <module>
    from scli.operation_queue import OperationQueue
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/scli/oper                                                                             ation_queue.py", line 19, in <module>
    from scli.operation.base import OperationBase
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/scli/oper                                                                             ation/base.py", line 21, in <module>
    from lib.elasticbeanstalk import eb_utils
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/lib/elast                                                                             icbeanstalk/eb_utils.py", line 22, in <module>
    from scli import api_wrapper
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/scli/api_                                                                             wrapper.py", line 19, in <module>
    from lib.elasticbeanstalk.servicecall import ElasticBeanstalkClient
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/lib/elast                                                                             icbeanstalk/servicecall.py", line 23, in <module>
    from lib.aws.webservice import AWSQueryClient, AWSSignature
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/lib/aws/w                                                                             ebservice.py", line 26, in <module>
    from . import requests
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/lib/aws/r                                                                             equests/__init__.py", line 52, in <module>
    from . import utils
  File "/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.4.0/eb/linux/python3/lib/aws/r                                                                             equests/utils.py", line 18, in <module>
    import zlib
ImportError: No module named zlib
4

0 回答 0