V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
enrolls
V2EX  ›  Python

帮你选择最快的 pip 镜像,告别安装慢

  •  
  •   enrolls ·
    harmonsir · Oct 31, 2025 · 7481 views
    This topic created in 184 days ago, the information mentioned may be changed or developed.

    pip 默认连接的是位于海外的 PyPI 官方源,网络延迟的时候下载速度非常慢。

    所以,直接写了一个 pip fast check pypi

    直接安装

    pip install -U pip-fc

    直接运行

    pip-fc 或者 python -m pip-fc

    主要功能

    • 自动选择最快的镜像源:测试多个国内镜像源,自动选出响应最快的源。
    • 支持 Python 2.7 和 3.x:无论你使用的是哪个版本的 Python ,都能兼容。
    • 简单的命令行操作:无需手动配置,只需执行简单命令,就能切换到最快的镜像源。
    • 支持全局配置:镜像源设置支持全局配置,甚至可以在 Docker 容器中使用。
    Supplement 1  ·  Oct 31, 2025

    pip-fc --add-nvidia 会增加 AI 方面的包

    pip-fc --reset 还原设置

    至于解决依赖,冲突,audit,打包的问题,In planning,其实写了一半,没测,没发,优先度低

    8 replies    2025-10-31 19:56:15 +08:00
    shinonome
        1
    shinonome  
       Oct 31, 2025
    有用呢
    Alias4ck
        2
    Alias4ck  
       Oct 31, 2025
    pip 解决 conflict 也慢 建议 uv
    Zealand
        3
    Zealand  
       Oct 31, 2025

    不知道为啥,显示安装成功了,但是实际上用不了,Windows10 ,Python3.10
    skyflower
        4
    skyflower  
       Oct 31, 2025
    我一直用的豆瓣的源
    TimePPT
        5
    TimePPT  
    PRO
       Oct 31, 2025
    uv + aliyun 的源,再没感觉慢了
    SirYuxuan
        6
    SirYuxuan  
       Oct 31, 2025
    chsrc 了解一下
    enrolls
        7
    enrolls  
    OP
       Oct 31, 2025
    @Zealand 执行一次 `pip-fc`,自动帮你查最快的源。然后你再使用 pip install xxx
    enrolls
        8
    enrolls  
    OP
       Oct 31, 2025
    @SirYuxuan 进去看到 chsrc 的作者... 我没那么多精力,tools 很多,思路很广,自行随意。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:34 · PVG 20:34 · LAX 05:34 · JFK 08:34
    ♥ Do have faith in what you're doing.