Monthly: 1 月 2018
制作pip离线镜像源
总体分为两部分:
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);... [阅读全文]
近期评论