Skip to main content

快速设置国内镜像源,方便记不住源地址的小伙子

Project description

配置镜像源

快速设置国内镜像源,方便记不住源地址的小伙子

安装

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
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mirror_source-0.0.6.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

mirror_source-0.0.6-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file mirror_source-0.0.6.tar.gz.

File metadata

  • Download URL: mirror_source-0.0.6.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.7 Windows/10

File hashes

Hashes for mirror_source-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c2dc101d411347a4734aec8351c62722166392bf4af4948026d8bde79ec00f6f
MD5 c73e13981b9252fe8a739c667a98a25f
BLAKE2b-256 77238ca9f69ecf9c5d740b48a5e73cd9a8e1cfc5772909e22142c43793b05482

See more details on using hashes here.

File details

Details for the file mirror_source-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: mirror_source-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.7 Windows/10

File hashes

Hashes for mirror_source-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 04aa2d8114e028e86c1834da6e66b3a7b34560223ea648677b84f0198e9b67e4
MD5 66f597ff459caf3d25f1cb2ae866c2de
BLAKE2b-256 7c8bfb009c106aeb9bac7c5abc200b501d65f38174f9694901414545509e1c70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page