ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects
时间: 2023-09-22 21:12:29 浏览: 240
python pip安装包出现:Failed building wheel for xxx错误的解决
5星 · 资源好评率100%
ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects,这个错误通常在重新安装opencv时出现。它表明正在安装的python版本不支持最新的opencv版本。为了解决这个问题,您需要安装一个旧版本的opencv,例如4.3.0.38。您可以在安装指令后面加上以下代码来安装旧版本:opencv-python==4.3.0.38 。
另外,您还提到了另一个错误:ERROR: Could not build wheels for lanms-neo,这个错误可能是因为缺少Microsoft Visual C 14.0或更高版本。您可以尝试安装相应的编译工具,或者尝试安装预编译版本的lanms-neo 。
总结起来,解决ERROR: Could not build wheels for opencv-python的问题,您可以使用以下指令来安装旧版本的opencv-python:pip install opencv-python==4.3.0.38 -i https://pypi.tuna.tsinghua.edu.cn/simple 。解决ERROR: Could not build wheels for lanms-neo的问题,您可以尝试安装相应的编译工具或安装预编译版本的lanms-neo。
希望这些信息对您有帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [python库安装:Could not build wheels for opencv-python](https://blog.csdn.net/qq_37525888/article/details/129474877)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [lanms-neo-1.0.2-cp38-cp38-win-amd64.whl](https://download.csdn.net/download/sayonekui/87429886)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文