python版本3.8

安装

1、安装opencv-python

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

2、安装opencv-contrib-python

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

遇到的问题:

1、Cannot find reference 'imread' in '__init__.py'

出现原因:安装时没有指定版本

解决:安装指定版本4.5.3.56

2、You need configured Python 2 SDK to render Epydoc docstrings

下载python2.7,并在pycharm中添加其解释器。如图在Project Interpreter中添加指定环境。(只添加即可,不需要将更改当前项目使用的解释器)

 

 然后如下图设置Docstrings。

 

 

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐