EB部署失败,'requirements.txt'返回非零退出状态'-找不到pywin32 == 224的匹配分布

时间:2019-05-02 07:58:27

标签: python amazon-web-services pywin32 requirements eb

我只是想让我的应用程序在EB上运行-但是当我运行eb deploy时,它会上传代码,然后在应用程序运行之前控制台会出现错误。

  

命令在实例上失败。返回代码:1输出:(TRUNCATED)...)文件“ /usr/lib64/python2.7/subprocess.py”,行190,在check_call中引发CalledProcessError(retcode,cmd)CalledProcessError:命令'/ opt / python / run / venv / bin / pip install -r /opt/python/ondeck/app/requirements.txt'返回非零退出状态1.钩子/opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py失败。有关更多详细信息,请使用控制台或EB CLI检查/var/log/eb-activity.log。

我检查日志以查看关于requirements.txt的错误所在,这是我所看到的:

var/log/eb-commandprocessor.log
-------------------------------------
   https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a490570d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl
  Collecting pywin32==224 (from -r /opt/python/ondeck/app/requirements.txt (line 92))
    Could not find a version that satisfies the requirement pywin32==224 (from -r /opt/python/ondeck/app/requirements.txt (line 92)) (from versions: )
  No matching distribution found for pywin32==224 (from -r /opt/python/ondeck/app/requirements.txt (line 92))
  You are using pip version 9.0.1, however version 19.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  2019-05-02 07:33:21,688 ERROR    Error installing dependencies: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1
  Traceback (most recent call last):
    File "/opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py", line 22, in main
      install_dependencies()
    File "/opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py", line 18, in install_dependencies
      check_call('%s install -r %s' % (os.path.join(APP_VIRTUAL_ENV, 'bin', 'pip'), requirements_file), shell=True)
    File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call
      raise CalledProcessError(retcode, cmd)
  CalledProcessError: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1 (Executor::NonZeroExitStatus)

在我的虚拟环境中,这些是我的requirements.txt的相关部分

pypiwin32==223
pywin32==224

我正在运行python版本3.7.2,Django版本2.1

我在其他地方看到了一些线程,但是没有明确的答案怎么办...?

0 个答案:

没有答案