pip 安装python库出现的unpack问题

https://blog.csdn.net/qq_33161208/article/details/91864209
https://blog.csdn.net/cn_1937/article/details/81449484

pip 安装python库常常出现两种问题
1
第一种属于默认镜像下载速度太慢,并且经常下载不成功,使用其他镜像可以完美解决
参考博文
https://blog.csdn.net/sunny_happy08/article/details/83113692
2
另一种属于unpack问题,即使更换镜像也常常遇到,这里会有一个trust host的问题,经过无数次踩坑发现比较靠谱的解决方法:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 包名
参看博文

https://blog.csdn.net/qq_33161208/article/details/91864209
https://blog.csdn.net/cn_1937/article/details/81449484

3
Could not find a version that satisfies the requirement PIL (from versions: )

No matching distribution found for PIL
pip install https://pypi.tuna.tsinghua.edu.cn/simple readJSON
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn readJSON
pip3 install readJSON -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
参考博文

https://blog.csdn.net/yushuangping/article/details/82963839
https://www.cnblogs.com/fengzifengfeng/p/10744706.html

## 4

.如果和楼主一样每个坑都要踩一脚并且用pip真的不得行
https://www.lfd.uci.edu/~gohlke/pythonlibs/#simplejson
手动下载whl文件,使用pip install 文件名安装
或者手动下载tar文件,按以下博文操作(很全)
https://blog.csdn.net/weixin_44032898/article/details/104496265?depth_1-utm_source=distribute.pc_category.none-task&request_id=&utm_source=distribute.pc_category.none-task

*## 5
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
很多包库是相互关联的,例如使用人脸识别的face-recongnation就必须先安装好dlib(是的对于这个dlib楼主起码是非常恼火)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值