我一直在开发一个Python应用程序在本地,现在想将其部署到Amazon弹性魔豆,但我已经打了以下错误:
I've been developing a Python application locally, and now want to deploy it to Amazon Elastic Beanstalk, but I have hit the following error:
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连接安装OpenCV,蟒蛇
它说:下载/解压缩的OpenCV,蟒蛇一分钟左右,然后:
If I connect with SSH and type sudo pip install opencv-python
it says "Downloading/unpacking opencv-python" for a minute or so, then:
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但未能如下:
I also tried adding "http://rpmfind.net/linux/fedora/linux/development/rawhide/x86_64/os/Packages/o/opencv-python-2.4.9-3.fc22.x86_64.rpm" to my requirements.txt but that failed as follows:
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
我也试过须藤yum的安装OpenCV,蟒蛇,但失败了,如下所示:
I also tried "sudo yum install opencv-python" but that failed as follows:
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安装,好吗?
For my development system I got the installer from http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv. How can I get it installed on EB, please?
如果没有办法安装这个确切的包,什么是最好的选择吗?
If there's no way to install this exact package, what is the best alternative, please?
最简单的解决办法,现在,是安装点子1.2.1,它不要求SSL:
The easy workaround for now, is to install pip 1.2.1, which does not require SSL:
curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz
tar xvfz pip-1.2.1.tar.gz
cd pip-1.2.1
python setup.py install
也许这可以帮助你。
Maybe that can help you