gpt4 book ai didi

python - 在 zappa 中获取 "ERROR: Double requirement given: setuptools"错误

转载 作者:行者123 更新时间:2023-12-04 12:32:18 25 4
gpt4 key购买 nike

我尝试使用 zappa==0.52.0 部署我的 Flask 应用程序,但我收到如下错误;

ERROR: Double requirement given: setuptools (already in setuptools==52.0.0.post20210125, name='setuptools')WARNING: You are using pip version 20.2.3; however, version 21.1.3 is available.You should consider upgrading via the '/Users/yoonshinkwark/Documents/JBR_reco_local_2/JBR_reco_API_2/dola-aldagram/aws-flask38/bin/python3.8 -m pip install --upgrade pip' command.Oh no! An error occurred! :(


Traceback (most recent call last):File "/Users/yoonshinkwark/opt/anaconda3/lib/python3.8/site-packages/zappa/cli.py", line 3422, in handlesys.exit(cli.handle())File "/Users/yoonshinkwark/opt/anaconda3/lib/python3.8/site-packages/zappa/cli.py", line 588, in handleself.dispatch_command(self.command, stage)File "/Users/yoonshinkwark/opt/anaconda3/lib/python3.8/site-packages/zappa/cli.py", line 630, in dispatch_commandself.deploy(self.vargs["zip"], self.vargs["docker_image_uri"])File "/Users/yoonshinkwark/opt/anaconda3/lib/python3.8/site-packages/zappa/cli.py", line 852, in deployself.create_package()File "/Users/yoonshinkwark/opt/anaconda3/lib/python3.8/site-packages/zappa/cli.py", line 2760, in create_packagevenv=self.zappa.create_handler_venv(),File "/Users/yoonshinkwark/opt/anaconda3/lib/python3.8/site-packages/zappa/core.py", line 513, in create_handler_venvraise EnvironmentError("Pypi lookup failed")OSError: Pypi lookup failed


Python 的版本是 3.8.8。

最佳答案

zappa github中已经有问题了:
https://github.com/zappa/Zappa/issues/995
问题是zappa加了setup-tools到它的依赖项,但最新版本的 pip-tools (6.2.0) 现在做同样的事情。
作为快速修复,您可以在 requirements.txt 中将 pip-tools 固定到版本 6.1.0

关于python - 在 zappa 中获取 "ERROR: Double requirement given: setuptools"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68176733/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com