astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

rye add always redownload installed packages #1376

Open shimachao opened 2 weeks ago

shimachao commented 2 weeks ago

rye version

rye --version
rye 0.39.0
commit: 0.39.0 (bf3ccf818 2024-08-21)
platform: linux (x86_64)
self-python: cpython@3.12.4
symlink support: true
uv enabled: true

uv version:

uv -V
uv 0.4.7

I installed the following packages via the rye add command:

rye list
annotated-types==0.7.0
asgiref==3.8.1
django==5.1.1
django-ninja==1.3.0
filelock==3.16.0
fsspec==2024.9.0
jinja2==3.1.4
markupsafe==2.1.5
mpmath==1.3.0
networkx==3.3
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==9.1.0.70
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.6.68
nvidia-nvtx-cu12==12.1.105
pydantic==2.9.0
pydantic-core==2.23.2
setuptools==74.1.2
sqlparse==0.5.1
sympy==1.13.2
torch==2.4.1
triton==3.0.0
typing-extensions==4.12.2
`tzdata==2024.1`

I want to continue using the rye add command to add a transformers package, but the rye add command starts to redownload all installed packages.

rye add -v transformers
Added transformers>=4.44.2 as regular dependency
Python version already downloaded. Skipping.
Reusing already existing virtualenv
Generating production lockfile: /home/chao/text_correct_server/requirements.lock
django==5.1.1                                                                                                                                                                                                                                
django     ------------------------------ 3.87 MB/8.25 MB
transformers ------------------------------ 3.92 MB/9.47 MB
torch      ------------------------------ 1.88 MB/797.02 MB