ERROR: Could not find a version that satisfies the requirement cv2 (fr
Python 2022/11/23 17:05:29 点击:不统计
http://%77%77%77%2E%66%6F%72%61%73%70%2E%63%6E
安装 cv2 提示找不到
pip install cv2
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2
ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI no longer supports 'pip search' (or XML-RPC search). Please use https://pypi.org/search (via a browser) instead. See https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.
解决方案:
1. 首先升级一下pip
pip install --upgrade pip
2. 通过 pip install opencv-python 来替换cv2 安装