如pip install opencv-python或pip install torchvision
以国内镜像诸如http://pypi.douban.com/simple
pip install -i https://pypi.douban.com/simple torchvision会快很多。
但有时会出现:ERROR: Cannot unpack file C:\Users\pc\AppData\Local\Temp\pip-unpack-qo1qqz8w\pypi.douban.com (downloaded from C:\Users\pc\AppData\Local\Temp\pip-req-build-yklzzvf2, content-type: text/html); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\pc\AppData\Local\Temp\pip-req-build-yklzzvf2安装失败,此或为镜像源问题可在更换源后/数次重试/在补充model版本号后解决
pip install 安装包名字 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com //豆瓣镜像网站 此镜像下载也很快