Python:pip install requests出错解决及一些问题处理

Requests 是Python的第三方库。需要另行安装。
执行pip install requests出错,提示:
在这里插入图片描述
在windows中:
直接在user目录中创建一个pip目录,如:C:\Users\xx(电脑用户名)\pip,新建文件pip.ini
pip.ini里添加内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

亲测可行。在这里插入图片描述

在这里插入图片描述
有2个Warning ,处理一下。
the srcript chardetect.exe is installed in ‘d:\python\python38-32\scripts’ which is not on Path
这个文件安装的位置不在%path%变量中,如果要使用需要全路径才能使用这个功能
在这里插入图片描述

同时还提示
you are using pip version 19.2.3 ,however version 20.1.1 is available. You should consider upgrading via the ‘python -m pip install --upgrade pip’ command
在这里插入图片描述
用语句执行pip的升级
python -m pip install --upgrade pip

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值