2

While installing a package, I am constantly getting a message like

INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
  Downloading scipy-1.4.1-cp37-cp37m-manylinux1_x86_64.whl (26.1 MB)
     |████████████████████████████████| 26.1 MB 55 kB/s 
  Downloading scipy-1.4.0-cp37-cp37m-manylinux1_x86_64.whl (26.1 MB)
     |████████████████████████████████| 26.1 MB 1.6 MB/s 
  Downloading scipy-1.3.3-cp37-cp37m-manylinux1_x86_64.whl (25.2 MB)
     |████████████████████████████████| 25.2 MB 23 kB/s 
  Downloading scipy-1.3.2-cp37-cp37m-manylinux1_x86_64.whl (25.2 MB)
     |████████████████████████████████| 25.2 MB 63.6 MB/s 
  Downloading scipy-1.3.1-cp37-cp37m-manylinux1_x86_64.whl (25.2 MB)
     |████████████████████████████████| 25.2 MB 1.6 MB/s 
  Downloading scipy-1.3.0-cp37-cp37m-manylinux1_x86_64.whl (25.2 MB)
     |████████████████████████████████| 25.2 MB 1.8 MB/s 
  Downloading scipy-1.2.3-cp37-cp37m-manylinux1_x86_64.whl (24.8 MB)
     |████████████████████████████████| 24.8 MB 49 kB/s 
  Downloading scipy-1.2.2-cp37-cp37m-manylinux1_x86_64.whl (24.8 MB)
     |████████████████████████████████| 24.8 MB 2.0 MB/s 
  Downloading scipy-1.2.1-cp37-cp37m-manylinux1_x86_64.whl (24.8 MB)
     |████████████████████████████████| 24.8 MB 1.8 MB/s 
  Downloading scipy-1.2.0-cp37-cp37m-manylinux1_x86_64.whl (26.6 MB)
     |████████████████████████████████| 26.6 MB 76 kB/s 
  Downloading scipy-1.1.0-cp37-cp37m-manylinux1_x86_64.whl (31.2 MB)
     |████████████████████████████████| 31.2 MB 120 kB/s 
  Downloading scipy-1.0.1.tar.gz (15.5 MB)
     |████████████████████████████████| 15.5 MB 70 kB/s 
  Downloading scipy-1.0.0.tar.gz (15.2 MB)
     |████████████████████████████████| 15.2 MB 46 kB/s 
  ...

And this goes on.. which takes lot of time.

How can I help pip resolve the dependencies and complete the install faster?

Brian61354270
  • 8,690
  • 4
  • 21
  • 43
ASHWIN.S
  • 51
  • 3
  • Welcome to stack overflow. Did you just post a question to then answer it...???? – SomeSimpleton Jul 25 '23 at 01:12
  • 4
    @SomeSimpleton Self answering is actually encouraged. It's in the spirit of this being Q&A site. See also [Can I answer my own question?](https://stackoverflow.com/help/self-answer) from the help center. – Brian61354270 Jul 25 '23 at 01:13
  • 2
    @Brian61354270 Dang didn't know that, that's cool just for knowledge storage. You learn something new every day. Thanks! – SomeSimpleton Jul 25 '23 at 01:16

1 Answers1

3

Just update your pip.

This worked for me. and it took 2 days for me to figure it out

!pip install --upgrade pip

Hope this will help you all.

ASHWIN.S
  • 51
  • 3
  • For future readers, this works if you are using a version of pip between v20.3 (when backtracking was added) and v22 (when the backtracker received a major update) – Brian61354270 Jul 25 '23 at 01:39