解决Python使用pip安装库文件出现“Error:Cannot unpack file…”的情况

2023-07-28人工智能1 分钟224 次阅读
AI 摘要salmon-ai

本文详

问题

在学习opencv时安装相关依赖包是报错
image.png

解决

解决方法:
使用命令:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 包名

如下:

sh 复制代码
 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn opencv-python opencv-contrib-python jupyter matplotlib
image.png
觉得有用就点个赞,不用登录也能读

评论

0 条
登录 之后才能评论
—
还没有评论,来说第一句