赞
踩
目录
4、如何还是不行,就要具体分析一下报错信息了 ,比如博主后来遇到的一些情况:
6.如果出现pip is configured with locations that require TLS/SSL
请按顺序进行依次执行.
python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
有时候阿里镜像比较好用
python -m pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/
python -m pip install -U --force-reinstall pip
pip install sip -i https://pypi.tuna.tsinghua.edu.cn/simple
有时候阿里镜像比较好用
pip install sip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
说是编码不对,点进去看一下
接着往前追溯,看看encoding是从哪来的
原来编码是None,程序肯定是采用默认的GBK,所以这里我改一下他的默认编码为:UTF-8
pip install -r D:\yolov5-master\requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
成功!
解决:
- mkdir -p ~/.pip
- vim ~/.pip/pip.conf
然后输入内容:
- [global]
- index-url = http://mirrors.aliyun.com/pypi/simple/
-
- [install]
- trusted-host = mirrors.aliyun.com
再次使用pip安装即可
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。