python 包安装之源码安装:requests-master源码通过pip本地安装

1.到git下载源码zip源码,https://github.com/requests/requests

2.下载了  ZIP包,安装说明:

   Once you have a copy of the source, you can embed it in your own Python package, or install it into your site-packages easily:

$ cd requests
$ pip install .

3.把requests-master解压到python目录

cd 到 requests-master 

运行 pip install .

它自动从pypi下载相关的依赖包,比如,它也下载和安装了certifi  , chardet , idna , urllib3

4.另外一种方法:

cmd 进入py D:\python\requests-master

输入命令:python setup.py install 回车即可

猜你喜欢

转载自blog.csdn.net/aganliang/article/details/81072876
今日推荐