首页 » 2018 » 1 月

Monthly: 1 月 2018

制作pip离线镜像源

vForce | PHP, Python | 2018-01-31
总体分为两部分: 1、生成requirement.txt 2、使用脚本下载离线包   这里使用一个简单的PHP脚本自动生成requirement.txt <?php $raw_html = file_get_contents("http://mirrors.aliyun.com/pypi/simple/"); $matches = []; preg_match_all("/<a.*>(.*)<\/a><br\/>/", $raw_html, $matches);... [阅读全文]
ė 6没有评论 0
Ɣ回顶部