gpt4 book ai didi

python - 如何在 Amazon Elastic Beanstalk 上安装 opencv-python

转载 作者:太空宇宙 更新时间:2023-11-03 11:29:10 34 4
gpt4 key购买 nike

我一直在本地开发一个 Python 应用程序,现在想将它部署到 Amazon Elastic Beanstalk,但是我遇到了以下错误:

Downloading/unpacking opencv-python==2.4.8.1 (from -r
/opt/python/ondeck/app/requirements.txt (line 12))
Could not find any downloads that satisfy the requirement opencv-python==2.4.8.1
(from -r /opt/python/ondeck/app/requirements.txt (line 12))

Some externally hosted files were ignored (use --allow-external opencv-python to allow).
Cleaning up... No distributions at all found for opencv-python==2.4.8.1
(from -r /opt/python/ondeck/app/requirements.txt (line 12))

如果我使用 SSH 连接并键入 sudo pip install opencv-python,它会显示“正在下载/解压 opencv-python”一分钟左右,然后:

Could not find any downloads that satisfy the requirement opencv-python
Cleaning up...
No distributions at all found for opencv-python
Storing debug log for failure in /root/.pip/pip.log

我还尝试将“http://rpmfind.net/linux/fedora/linux/development/rawhide/x86_64/os/Packages/o/opencv-python-2.4.9-3.fc22.x86_64.rpm”添加到我的 requirements.txt 但失败如下:

Downloading/unpacking http://rpmfind.net/linux/fedora/linux/development/rawhide/x86_64/os/Packages/o/opencv-python-2.4.9-3.fc22.x86_64.rpm (from -r /opt/python/ondeck/app/requirements.txt (line 14))
Cannot unpack file /tmp/pip-ONBFer-unpack/opencv-python-2.4.9-3.fc22.x86_64.rpm (downloaded from /tmp/pip-SUUfnS-build, content-type: application/x-rpm); cannot detect archive format
Cleaning up...
Cannot determine archive format of /tmp/pip-SUUfnS-build
Storing debug log for failure in /root/.pip/pip.log

我也试过“sudo yum install opencv-python”但失败如下:

Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/2014.09 | 2.1 kB 00:00
amzn-updates/2014.09 | 2.3 kB 00:00
No package opencv-python available.
Error: Nothing to do

对于我的开发系统,我从 http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv 获得了安装程序.请问我怎样才能在 EB 上安装它?

如果没有办法安装这个确切的包,最好的选择是什么?

最佳答案

如果您能够考虑解决方法,这里有一些选项。

使用 AWS Elastic Beanstalk

没有 AWS Elastic Beanstalk

关于python - 如何在 Amazon Elastic Beanstalk 上安装 opencv-python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26725954/

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