配置镜像源
快速设置国内镜像源,方便记不住源地址的小伙子
安装
pip install mirror-source
使用
python -m mirror_source
请选择要设置的镜像源
[0] [清华](https://pypi.tuna.tsinghua.edu.cn/simple)
[1] [阿里云](https://mirrors.aliyun.com/pypi/simple/)
[2] [网易](https://mirrors.163.com/pypi/simple/)
[3] [豆瓣](https://pypi.douban.com/simple/)
[4] [百度云](https://mirror.baidu.com/pypi/simple/)
[5] [华为云](https://mirrors.huaweicloud.com/repository/pypi/simple/)
[6] [腾讯云](https://mirrors.cloud.tencent.com/pypi/simple/)
[Default:0]> 1
:) Success setting source: https://mirrors.aliyun.com/pypi/simple/
功能介绍
-
Windows 环境配置
%APPDATA%/pip/pip.ini[global] index-url = 镜像源URL [install] trusted-host = 镜像源域名
-
Linux/Mac 环境配置
~/.pip/pip.conf[global] index-url = 镜像源URL [install] trusted-host = 镜像源域名
-
pipenv 环境配置
.Pipfile[[source]] url = "镜像源URL" verify_ssl = true name = "镜像源域名"
-
poetry 环境配置
pyproject.toml[[tool.poetry.source]] name = "镜像源域名" url = "镜像源URL" default = true
Metadata
Release files for mirror-source 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mirror_source-0.0.9.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mirror_source-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / mirror_source-0.0.9.tar.gz
| Download URL | mirror_source-0.0.9.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee600df8a620c35478739ef9c489ac159f7ae8e91d70091959cbea3656c810c4
|
|
BLAKE2b-256 checksum How to use checksums |
adb3044db674e401eaaa5eddee2c916b1eec0e1b0b02348b63f0466e8ecdeae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.7 Windows/10
|
Release files / mirror_source-0.0.9-py3-none-any.whl
| Download URL | mirror_source-0.0.9-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df344ce4d41d4125ed2d94c7757fed80b6e32154daaba051dd7f7a898c3f5be3
|
|
BLAKE2b-256 checksum How to use checksums |
dccd4ab5d9e8ec3c33add1a9e6ee2188509101a5fcbc5abc50825f01d6b873e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.7 Windows/10
|