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

技术共进,成长同行——讯飞AI开发者社区

更多推荐