当前位置:   article > 正文

python库安装:Could not build wheels for opencv-python_could not build wheels for openexr, which is requi

could not build wheels for openexr, which is required to install pyproject.t

pycharm Terminal安装opencv的时候,系统出现报错:ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects

然后上网查了后,发现是python版本不支持最新的opencv,需要安装一个旧版本的,比如4.3.0.38的。
安装旧版本需要在安装指令后面加上段代码:opencv-python==4.3.0.38 就可以了。
完整指令如下:

pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python==4.3.0.38

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/127136
推荐阅读
相关标签
  

闽ICP备14008679号