我想在Python 3.7上使用3.3或更低版本的opencv-python
和opencv-contrib-python
版本。问题是我似乎无法将它们放在pip3
上。我需要它是pip3
和Python 3.7
,因为它要在Google Cloud Functions上运行。
如果我运行$ pip3 install opencv-contrib-python==
来获取我得到的版本:
versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.24, 4.1.0.25
和来自pip3 install opencv-python==
versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.24, 4.1.0.25
如何获得pip2
中可用的3.3.1.11之类的旧版本?
当然,通过部署尝试在GCloud
上获得旧版本可以给我
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`pip_download_wheels` had stderr output:\n Could not find a version that satisfies the requirement opencv-python==3.2.0.7 (from -r requirements.txt (line 2)) (from versions: 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25)\nNo matching distribution found for opencv-python==3.2.0.7 (from -r requirements.txt (line 2))\n\nerror: `pip_download_wheels` returned code: 1", "errorType": "InternalError", "errorId": "91F6A3AC"}}