【发布时间】:2014-12-30 19:12:53
【问题描述】:
我一直在本地开发一个 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上安装它?
如果无法安装这个确切的软件包,请问最好的选择是什么?
【问题讨论】:
-
我认为Python包索引中没有包
opencv-python。 -
查看此链接:pypi.python.org/…
-
那是一样的。但它在fedora存储库中对吗?不是python包索引。要安装它,您应该在 Fedora 机器上使用
yum install opencv-python。不是pip install。 -
我已经尝试过了,并用结果更新了我的问题。我猜这不是 Fedora 机器。
标签: python opencv amazon-web-services amazon-ec2 amazon-elastic-beanstalk