Pycharm中出现cannot import name 'AipOcr' from 'aip'或者出现ImportError: cannot import name 'AipFace' from 'aip'解决办法

最近在用 Python 写一个颜值测试小工具,要实现颜值测试功能,大致有两种方式:一种是自己编写检测功能,另一种是借助第三方接口来实现检测功能,比如:百度云接口,为了方便,本文我们采用百度云接口。

但是代码实现过程中出现下面情况

在这里插入图片描述
如图错误:
情况: 先装了aip 没装baidu-aip导致出现错误 后来装了baidu-aip还是出现错误
解决方法: 卸载aip 卸载baidu-aip 两个都卸载 再只装baidu-aip。最后成功运行

原文地址:https://www.cnblogs.com/cy0628/p/14230348.html