Skip to content

requirements中包的版本存在问题 #4080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
todayplusplus opened this issue May 5, 2025 · 4 comments
Closed

requirements中包的版本存在问题 #4080

todayplusplus opened this issue May 5, 2025 · 4 comments

Comments

@todayplusplus
Copy link

Describe the bug
What the bug is, and how to reproduce, better with screenshots(描述bug以及复现过程,最好有截图)

  • 拉取最新代码后(swift 3.5.0.dev0),使用官方推荐的安装方法pip install -e .[all],会因为包的版本依赖混乱导致报如下错:
..........
 Preparing metadata (setup.py) ... done
Collecting attrdict (from ms_swift==3.5.0.dev0)
  Using cached https://mirrors.cloud.tencent.com/pypi/packages/35/bb/bac3e42ae04bc082c28cd8186bfb5b50fb240a4f7419f876c683125ccc8b/attrdict-2.0.0.tar.gz (9.0 kB)
  Preparing metadata (setup.py) ... done
error: resolution-too-deep

× Dependency resolution exceeded maximum depth
╰─> Pip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently.

hint: Try adding lower bounds to constrain your dependencies, for example: 'package>=2.0.0' instead of just 'package'. 

Link: https://pip.pypa.io/en/stable/topics/dependency-resolution/#handling-resolution-too-deep-errors
  • 若使用旧版本(v3.0.1)则正常安装。
    初步分析是推荐的包版本混乱导致,请问是否可以提供一个可正常执行的包版本?
@Jintao-Huang
Copy link
Collaborator

Jintao-Huang commented May 5, 2025

pip install ms-swift -U或者 pip install -e .试试

@todayplusplus
Copy link
Author

谢谢@Jintao-Huang
pip install -e .可正常执行,请问pip install -e .[all]为何不能使用呢?
pip install -e .也是全能力

@Jintao-Huang
Copy link
Collaborator

Jintao-Huang commented May 5, 2025

除了eval和xtuner(序列并行)没有安装吧,其他都可以的

@todayplusplus
Copy link
Author

好的,感谢 @Jintao-Huang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants