多语言展示
当前在线:1143今日阅读:26今日分享:39

python 如何安装requests库

Requests is an elegant and simple HTTP library for Python, built for human beings. You are currently looking at the documentation of the development release.requests库号称是为人类设计的,学好requests库可谓是技术男的一大助力。
工具/原料
1

windows

2

python

3

anaconda

4

pycharm

方法/步骤
1

首先介绍利用anaconda下载request库的方法。第一种:打开anaconda prompt,在所需要的环境下输入conda install requests,弹出下面的框,我因为以前下过,这里显示更新,输入y即可安装。

2

第二种:打开anaconda prompt,在所需要的环境下输入pip install requests,等待下载完成即可。

4

接下来介绍没有下载anaconda的小伙伴如何下载requests,必须要有的是python,并且将python添加到环境变量路径中,在cmd里输入pip install requests即可。

5

最后,如何检验requests库已经成功安装上去了,输入import requests,如果没有报错,那么就已经安装成功了。

注意事项

努力努力再努力!

推荐信息