我一直在本地開發Python應用程序,現在想將它部署到Amazon彈性青苗,但我已經打了以下錯誤:如何在Amazon Elastic青苗安裝OpenCV的Python
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
我也試過「須藤yum的安裝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'。 – 2014-11-11 12:01:23
檢查此鏈接:https://pypi.python.org/pypi?%3Aaction=search&term=opencv&submit=search – 2014-11-11 12:03:47
它不是其中之一嗎? http://rpmfind.net/linux/rpm2html/search.php?query=opencv-python – matthewk 2014-11-11 13:31:58