一、下载加速

1.  git clone https://ghproxy.com/https://github.com/stilleshan/ServerStatus

2. 在原来链接的com后面添加 .cnpmjs.org/ 

二、pip换源

2.1 国内源地址

阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/


2.2 pip镜像地址永久改变:

1. CMD命令

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

2. 临时指定下载地址

pip install 包名字 -i 国内源地址

3. 本地自写地址永久改变

1. 在资源管理器的地址栏输入 %appdata% 后回车。

2.新建名为pip的文件夹,若已存在则不用新建。

3. 在pip文件夹内,新建pip.ini文件

 

 4. 记事本打开,输入:

[global]
index-url = https://pypi.douban.com/simple

[install]
use-mirrors = true
mirrors = http://pypi.douban.com/simple/
trusted-host = pypi.douban.com

地址可酌情添加,保存并推出。

 

以地址git clone https://ghproxy.com/https://github.com/FrozenBurning/SceneDreamer.git为例:

git  clon:

第一步:找到项目的https地址

 

第二步:在想要下载的位置右键,git bash here.

第三步:输入命令 

git clone https://ghproxy.com/https://github.com/FrozenBurning/SceneDreamer.git 或者 git clone  https://github.com.cnpmjs.org/FrozenBurning/SceneDreamer.git

 

 

 

pip同理

 

posted on 2023-04-15 19:22  董南  阅读(847)  评论(0编辑  收藏  举报