部署安装opencv-python时,提示如下信息,
[2022-03-16 18:05:43] Collecting opencv-python
[2022-03-16 18:05:43] Downloading (89.9 MB)
[2022-03-16 18:06:05] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━89.9/89.9 MB 5.3 MB/s eta 0:00:00
[2022-03-16 18:06:08] Installing build dependencies: started
[2022-03-16 18:06:18] Installing build dependencies: finished with status 'error'
[2022-03-16 18:06:18] error: subprocess-exited-with-error
[2022-03-16 18:06:18] � pip subprocess to install build dependencies did not run successfully.
[2022-03-16 18:06:18] │ exit code: 2
[2022-03-16 18:06:18] ╰─> [102 lines of output]
[2022-03-16 18:06:18] Looking in indexes:
http://mirrors.cloud.tencent.com/pypi/simple
[2022-03-16 18:06:18] Ignoring numpy: markers 'python_version == "3.6" and platform_machine !="aarch64" and platform_machine != "arm64"' don't match your environment
…………中间部分省略…………
[2022-03-16 18:06:18] Ignoring numpy: markers 'python_version >= "3.10"' don't match your environment
然后就会自动下载依赖库,但一到下载numpy就会下载失败(云托管好像pip下载numpy不会成功),如下:
[2022-03-1618:06:18] Collecting numpy==1.17.3
[2022-03-16 18:06:18] Downloading https://mirrors.cloud.tencent.com/pypi/packages/numpy-1.17.3.zip (6.4 MB)
[2022-03-16 18:06:18] ━━━━━━╸1.0/6.4 MB 5.7 MB/s eta 0:00:01
[2022-03-16 18:06:18] ERROR: Exception:
[2022-03-16 18:06:18] Traceback (most recent call last):
为此我已经在安装opencv-python之前上传安装好了这个版本的numpy,可安装opencv-python还是会报错,然后还是会下载numpy……然后失败……
请问我怎么才能在云托管中安装opencv-python呢?
你好,请问您这个问题解决了吗。这个问题困扰两天了
遇到同样的问题,好多库依赖numpy, 装不了的话云托管确实有点鸡肋...
你好,请问你这个问题解决了吗?我是在安装numpy的时候出现一样的报错,换了很多个numpy版本依然不行,感觉应该是云托管不能pip安装numpy导致的,现在部署一直进行不下去。