使用包管理可以大大降低引用和管理第三方庫(kù)的成本,但是很多源都在國(guó)外,通過(guò)包管理安裝的時(shí)候,容易超時(shí);我們可以通過(guò)修改為國(guó)內(nèi)源,或者使用代理來(lái)解決這個(gè)問(wèn)題。
提供方 | 源及使用方式 |
---|---|
豆瓣 | https://pypi.doubanio.com/simple/
|
清華大學(xué) | https://pypi.tuna.tsinghua.edu.cn/simple
|
阿里云 | https://mirrors.aliyun.com/pypi/simple/
|
提供方 | 源及使用方式 |
---|---|
- | https://packagist.phpcomposer.com/
|
- | https://php.cnpkg.org/
|
阿里云 | https://mirrors.aliyun.com/composer/
|
華為云 | https://mirrors.huaweicloud.com/repository/php/
|
上海交通大學(xué) | https://packagist.mirrors.sjtug.sjtu.edu.cn/
|
- | https://packagist.jp/
|
提供方 | 源及使用方式 |
---|---|
淘寶 | https://registry.npm.taobao.org/
|
- | http://r.cnpmjs.org/
|
提供方 | 源及使用方式 |
---|---|
Ruby China | https://ruby.taobao.org/
|
清華大學(xué) | https://mirrors.tuna.tsinghua.edu.cn/rubygems/
|
提供方 | 源及使用方式 |
---|---|
阿里云 | http://maven.aliyun.com/nexus/content/groups/public/
|
包管理器 | 代理方式 | 使用方式 |
---|---|---|
pip | http/https |
|
composer | http/https |
|
npm | http/https |
|
gem | http/https |
|
go | http/https |
|