V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
Oni0n
V2EX  ›  Python

求助: Python poetry install Resolving dependencies 永远很慢, 如何解决

  •  
  •   Oni0n · 1 天前 · 403 次点击

    python poetry install Resolving dependencies 永远很慢, 如何解决

    6 条回复    2025-02-21 11:44:15 +08:00
    supergeek1
        1
    supergeek1  
       1 天前   ❤️ 1
    换 uv 吧,pip/poetry/pdm/pyenv 有的功能他基本都有,依赖分析速度超级快,现在 GitHub 上的热门 python 项目很多都用 uv 了
    xiangewenqing
        2
    xiangewenqing  
       1 天前
    在 pyproject.toml 添加:
    [[tool.poetry.source]]
    name = "mirrors"
    url = "https://mirrors.aliyun.com/pypi/simple/"
    priority = "primary"

    这个模块指定源,这里指的阿里云,按喜好替换
    huangzhiyia
        3
    huangzhiyia  
       1 天前 via iPhone
    挂代理开 tun 模式解君愁
    Oni0n
        4
    Oni0n  
    OP
       1 天前
    @huangzhiyia
    @xiangewenqing
    代理, 换源都试过了, install 和 update 都卡在 Resolving dependencies
    有时候 install 会安装失败, 这个依赖管理体验太差了😂
    Oni0n
        5
    Oni0n  
    OP
       1 天前
    @supergeek1 好, 我去研究研究
    iorilu
        6
    iorilu  
       1 天前
    换 uv 把, 速度快 10 倍
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2908 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 06:13 · PVG 14:13 · LAX 22:13 · JFK 01:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.