使用包管理可以大大降低引用和管理第三方庫的成本,但是很多源都在國外,通過包管理安裝的時候,容易超時;我們可以通過修改為國內源,或者使用代理來解決這個問題。
| 提供方 | 源及使用方式 |
|---|---|
| 豆瓣 | https://pypi.doubanio.com/simple/
|
| 清華大學 | 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/
|
| 上海交通大學 | 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/
|
| 清華大學 | 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 |
|