Skip to content
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

依赖安装 #6

Open
Pxlauzmi opened this issue Jul 24, 2024 · 1 comment
Open

依赖安装 #6

Pxlauzmi opened this issue Jul 24, 2024 · 1 comment

Comments

@Pxlauzmi
Copy link

Pxlauzmi commented Jul 24, 2024

MacOS 14,VsCode,使用了pyenv virtualenv来安装依赖。执行语句:pip -r requirements.txt ,输出:

...
Collecting websockets==12.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4e/e1/f6c3ecf7f1bfd9209e13949db027d7fdea2faf090c69b5f2d17d1d796d96/websockets-12.0-cp310-cp310-macosx_11_0_arm64.whl (121 kB)
Requirement already satisfied: uvicorn[standard]>=0.12.0 in /Users/yanfangyu1/.pyenv/versions/3.10.14/envs/fastsoyadminpyenv/lib/python3.10/site-packages (from fastapi==0.111.0->-r requirements.txt (line 96)) (0.12.0)
Collecting uvicorn[standard]>=0.12.0
ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
    uvicorn[standard]>=0.12.0 from https://pypi.tuna.tsinghua.edu.cn/packages/63/84/2a26b4eac1cf0c6b5b176dd4346cc4912af5e1b0efc150b865e28636ac34/uvicorn-0.30.3-py3-none-any.whl (from fastapi==0.111.0->-r requirements.txt (line 96))

看样子是线上配置文件的问题,而非requirements.txt中的问题,是否考虑不使用hash模式固定python的依赖?

@fxconfig
Copy link

poetry ,可以 lock

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