解决安装face_detection失败问题

问题描述

(base) zz@xl:~/work/code/L2CS-Net$ pip install retinaface
Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple
ERROR: Could not find a version that satisfies the requirement retinaface (from versions: none)
ERROR: No matching distribution found for retinaface

如何安装retinaface
from face_detection import RetinaFace
pip install face_detection
pip install retinaface

原因分析:

pycharm或者cmd安装一些包的时候,会报这个错误,主要原因是网络的问题,需要使用国内的镜像源来加速,如豆瓣源、清华源、阿里源等。

解决方案:

套用下面安装命令即可:

pip install 库包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

把”库包名“换成你要安装的包的名称即可

猜你喜欢

转载自blog.csdn.net/zyq880625/article/details/131958991