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

Got Issues when pip install -r requirements.txt #91

Open
hellopahe opened this issue Jul 28, 2023 · 1 comment
Open

Got Issues when pip install -r requirements.txt #91

hellopahe opened this issue Jul 28, 2023 · 1 comment

Comments

@hellopahe
Copy link

Outputs:

Collecting fastapi==0.86.0 (from -r requirements.txt (line 1))
  Downloading fastapi-0.86.0-py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.5/55.5 kB 1.1 MB/s eta 0:00:00
Collecting numpy==1.22.3 (from -r requirements.txt (line 2))
  Downloading numpy-1.22.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.8/16.8 MB 56.3 MB/s eta 0:00:00
Collecting psutil==5.8.0 (from -r requirements.txt (line 3))
  Downloading psutil-5.8.0.tar.gz (470 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 470.9/470.9 kB 24.5 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pydantic==1.10.2 (from -r requirements.txt (line 4))
  Downloading pydantic-1.10.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.8/12.8 MB 46.1 MB/s eta 0:00:00
Collecting pynvml==11.0.0 (from -r requirements.txt (line 5))
  Downloading pynvml-11.0.0-py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.1/46.1 kB 5.6 MB/s eta 0:00:00
Collecting pytorch_lightning==1.7.6 (from -r requirements.txt (line 6))
  Downloading pytorch_lightning-1.7.6-py3-none-any.whl (707 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 707.5/707.5 kB 64.0 MB/s eta 0:00:00
Collecting scikit_learn==1.1.3 (from -r requirements.txt (line 7))
  Downloading scikit_learn-1.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (30.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 30.5/30.5 MB 18.4 MB/s eta 0:00:00
Collecting setuptools==58.0.4 (from -r requirements.txt (line 8))
  Downloading setuptools-58.0.4-py3-none-any.whl (816 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 816.5/816.5 kB 64.2 MB/s eta 0:00:00
Collecting starlette==0.20.4 (from -r requirements.txt (line 9))
  Downloading starlette-0.20.4-py3-none-any.whl (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.6/63.6 kB 7.7 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement torch==1.11.0+cu113 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1)
ERROR: No matching distribution found for torch==1.11.0+cu113

Then I tried to pip install https://mirror.sjtu.edu.cn/pytorch-wheels/cu113/torch-1.11.0+cu113-cp310-cp310-linux_x86_64.whl, still got issues like:

! pip install https://mirror.sjtu.edu.cn/pytorch-wheels/cu113/torch-1.11.0+cu113-cp310-cp310-linux_x86_64.whl
Collecting torch==1.11.0+cu113
  Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/cu113/torch-1.11.0+cu113-cp310-cp310-linux_x86_64.whl (1637.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 GB 977.0 kB/s eta 0:00:00
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from torch==1.11.0+cu113) (4.7.1)
Installing collected packages: torch
  Attempting uninstall: torch
    Found existing installation: torch 2.0.1+cu118
    Uninstalling torch-2.0.1+cu118:
      Successfully uninstalled torch-2.0.1+cu118
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchaudio 2.0.2+cu118 requires torch==2.0.1, but you have torch 1.11.0+cu113 which is incompatible.
torchdata 0.6.1 requires torch==2.0.1, but you have torch 1.11.0+cu113 which is incompatible.
torchtext 0.15.2 requires torch==2.0.1, but you have torch 1.11.0+cu113 which is incompatible.
torchvision 0.15.2+cu118 requires torch==2.0.1, but you have torch 1.11.0+cu113 which is incompatible.
Successfully installed torch-1.11.0+cu113

It seems like some conflicts within requirements.txt.

@pskun
Copy link
Collaborator

pskun commented Aug 2, 2023

Thank you for your feedback, we will update it soon.

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