tensorflow / models

Models and examples built with TensorFlow
Other
77.04k stars 45.77k forks source link

python -m pip install --use-feature=2020-resolver . taking forever to install dependencies #10396

Open kabyanil opened 2 years ago

kabyanil commented 2 years ago

I'm using the following commands to install TFOD 2.

https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2.md

there is this specific command - python -m pip install --use-feature=2020-resolver .

when i run this, the installation keeps on running indefinitely and eventually the runtime terminates.

You can reproduce the issue by following the mentioned approach to install TFOD 2 in the given link above.

The expected behavior is to complete the installation process.

System information: google colab pro

didierquintius commented 2 years ago

I have the same issue. It seems to have something to do with the fact that pip has to download multiple versions of some of the packages which is ok in the beginning but after some time it just stops.

aluxen commented 2 years ago

Same issue here... any updates?

gauthamk28 commented 2 years ago

I am also facing the same issue , using google colab pro , I ran it without any issue last month and last month I ran it in tf 2.4.1 but this time I am unable to install tf2.4.1 in colab,it is showing some error

primnp commented 2 years ago

I am also facing this issue, would appreciate any update thanks!

kabyanil commented 2 years ago

apparently, the issue is with the pip version. you can try updating pip using the following command -

!pip install --upgrade pip

Livijn commented 2 years ago

apparently, the issue is with the pip version. you can try updating pip using the following command -

!pip install --upgrade pip

This worked for me! Thanks :)

a-sajjad72 commented 4 months ago

apparently, the issue is with the pip version. you can try updating pip using the following command -

!pip install --upgrade pip

I think now the update pip won't work. because I have the latest version of pip but still getting same error.

$ python -m pip install -U pip
Requirement already satisfied: pip in ./venv/lib/python3.11/site-packages (24.1)

Edit: no need for the --use-feature=2020-resolver argument. exclude it and you will get your installation start.