Python学习之安装requests包

Python安装requests包

主要问题

1.安装requests包时提醒升级pip
Python学习之安装requests包_第1张图片
2.pip升级失败
Python学习之安装requests包_第2张图片
3.所有方法尝试过后还是错误

解决方法

1.首先根据提示升级pip
2. 输入pip install --user --upgrade pip升级失败的,试这条命令: python -m pip install --upgrade pip -i https://pypi.douban.com/simple
3. 查看是否用管理员权限打开命令框

文章参考:https://blog.csdn.net/weixin_42316534/article/details/105911491?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159099643519724843313893%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=159099643519724843313893&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2blogfirst_rank_v2~rank_blog_v1-1-105911491.pc_v2_rank_blog_v1&utm_term=You+should+consider+upgrading+

你可能感兴趣的:(笔记)