Object detection installation - dependency problems

I am trying to install the Tensorflow Object Detection API, however when i run the installation it seems to get stuck in a dependency/compability loop (running Ubuntu 20.04). This is the last part of the installation:
`
Downloading psutil-5.6.3.tar.gz (435 kB)
|████████████████████████████████| 435 kB 11.4 MB/s

Downloading psutil-5.6.2.tar.gz (432 kB)
|████████████████████████████████| 432 kB 11.4 MB/s

Downloading psutil-5.6.1.tar.gz (427 kB)
|████████████████████████████████| 427 kB 11.3 MB/s

Downloading psutil-5.6.0.tar.gz (426 kB)
|████████████████████████████████| 426 kB 11.6 MB/s

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 psutil-5.5.1.tar.gz (426 kB)
|████████████████████████████████| 426 kB 11.5 MB/s

Downloading psutil-5.5.0.tar.gz (425 kB)
|████████████████████████████████| 425 kB 11.4 MB/s

Downloading psutil-5.4.8.tar.gz (422 kB)
|████████████████████████████████| 422 kB 11.3 MB/s

Downloading psutil-5.4.7.tar.gz (420 kB)
|████████████████████████████████| 420 kB 11.0 MB/s

Downloading psutil-5.4.6.tar.gz (418 kB)
|████████████████████████████████| 418 kB 9.9 MB/s

Downloading psutil-5.4.5.tar.gz (418 kB)
|████████████████████████████████| 418 kB 13.5 MB/s

Downloading psutil-5.4.4.tar.gz (417 kB)
|████████████████████████████████| 417 kB 11.4 MB/s

Downloading psutil-5.4.3.tar.gz (412 kB)
|████████████████████████████████| 412 kB 11.3 MB/s

INFO: pip is looking at multiple versions of proto-plus to determine which version is compatible with other requirements. This could take a while.
Collecting proto-plus>=1.10.0

Downloading proto_plus-1.18.1-py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 1.3 MB/s

Downloading proto_plus-1.18.0-py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 836 kB/s

Downloading proto_plus-1.17.0-py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 1.7 MB/s

Downloading proto_plus-1.16.0-py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 1.7 MB/s

Downloading proto_plus-1.15.0-py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 1.7 MB/s

Downloading proto_plus-1.14.2-py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 615 kB/s

Downloading proto-plus-1.13.0.tar.gz (44 kB)
|████████████████████████████████| 44 kB 3.0 MB/s

INFO: pip is looking at multiple versions of proto-plus to determine which version is compatible with other requirements. This could take a while.

Downloading proto-plus-1.11.0.tar.gz (44 kB)
|████████████████████████████████| 44 kB 2.8 MB/s

Downloading proto-plus-1.10.2.tar.gz (42 kB)
|████████████████████████████████| 42 kB 1.2 MB/s

Downloading proto-plus-1.10.1.tar.gz (42 kB)
|████████████████████████████████| 42 kB 2.2 MB/s

Downloading proto-plus-1.10.0.tar.gz (24 kB)
INFO: pip is looking at multiple versions of packaging to determine which version is compatible with other requirements. This could take a while.
Collecting packaging>=14.3

Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
|████████████████████████████████| 40 kB 5.6 MB/s

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
`

Anyway to solve this issue?

1 Like

I had this issue when trying to install it after making the following updates to my environment:

tensorflow 2.4.1–> 2.5
python 3.7.10–> 3.8.10
Cuda toolkit 10.1–> 11.2

This was the error message:

WARNING: --use-feature=2020-resolver no longer has any effect, since it is now the default dependency resolver in pip. This will become an error in pip 21.0.
Processing /home/labuser/tlt2/Tensorflow/models/research
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Collecting avro-python3
  Using cached avro-python3-1.10.2.tar.gz (38 kB)
Collecting apache-beam
  Using cached apache_beam-2.31.0-cp38-cp38-manylinux2010_x86_64.whl (11.5 MB)
Requirement already satisfied: pillow in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from object-detection==0.1) (8.3.1)
Collecting lxml
  Using cached lxml-4.6.3-cp38-cp38-manylinux2014_x86_64.whl (6.8 MB)
Requirement already satisfied: matplotlib in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from object-detection==0.1) (3.4.2)
Collecting Cython
  Using cached Cython-0.29.24-cp38-cp38-manylinux1_x86_64.whl (1.9 MB)
Collecting contextlib2
  Using cached contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
Collecting tf-slim
  Using cached tf_slim-1.1.0-py2.py3-none-any.whl (352 kB)
Requirement already satisfied: six in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from object-detection==0.1) (1.16.0)
Collecting pycocotools
  Using cached pycocotools-2.0.2-cp38-cp38-linux_x86_64.whl
Collecting lvis
  Using cached lvis-0.5.3-py3-none-any.whl (14 kB)
Collecting scipy
  Using cached scipy-1.7.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (28.4 MB)
Collecting pandas
  Using cached pandas-1.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (10.6 MB)
Collecting tf-models-official
  Using cached tf_models_official-2.5.0-py2.py3-none-any.whl (1.6 MB)
Requirement already satisfied: typing-extensions<3.8.0,>=3.7.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from apache-beam->object-detection==0.1) (3.7.4.3)
Collecting oauth2client<5,>=2.0.1
  Using cached oauth2client-4.1.3-py2.py3-none-any.whl (98 kB)
Collecting dill<0.3.2,>=0.3.1.1
  Using cached dill-0.3.1.1-py3-none-any.whl
Collecting avro-python3
  Using cached avro_python3-1.9.2.1-py3-none-any.whl
Collecting pytz>=2018.3
  Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting future<1.0.0,>=0.18.2
  Using cached future-0.18.2.tar.gz (829 kB)
Requirement already satisfied: protobuf<4,>=3.12.2 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from apache-beam->object-detection==0.1) (3.17.3)
Collecting pyarrow<5.0.0,>=0.15.1
  Using cached pyarrow-4.0.1-cp38-cp38-manylinux2014_x86_64.whl (21.9 MB)
Collecting hdfs<3.0.0,>=2.1.0
  Using cached hdfs-2.6.0-py3-none-any.whl (33 kB)
Collecting pydot<2,>=1.2.0
  Using cached pydot-1.4.2-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: requests<3.0.0,>=2.24.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from apache-beam->object-detection==0.1) (2.26.0)
Collecting fastavro<2,>=0.21.4
  Using cached fastavro-1.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB)
Collecting crcmod<2.0,>=1.7
  Using cached crcmod-1.7-cp38-cp38-linux_x86_64.whl
Requirement already satisfied: grpcio<2,>=1.29.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from apache-beam->object-detection==0.1) (1.34.1)
Collecting httplib2<0.20.0,>=0.8
  Using cached httplib2-0.19.1-py3-none-any.whl (95 kB)
Collecting pymongo<4.0.0,>=3.8.0
  Using cached pymongo-3.12.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (545 kB)
Requirement already satisfied: python-dateutil<3,>=2.8.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from apache-beam->object-detection==0.1) (2.8.2)
Collecting numpy<1.21.0,>=1.14.3
  Using cached numpy-1.20.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 MB)
Collecting docopt
  Using cached docopt-0.6.2-py2.py3-none-any.whl
Requirement already satisfied: pyparsing<3,>=2.4.2 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from httplib2<0.20.0,>=0.8->apache-beam->object-detection==0.1) (2.4.7)
Requirement already satisfied: pyasn1>=0.1.7 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from oauth2client<5,>=2.0.1->apache-beam->object-detection==0.1) (0.4.8)
Requirement already satisfied: pyasn1-modules>=0.0.5 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from oauth2client<5,>=2.0.1->apache-beam->object-detection==0.1) (0.2.8)
Requirement already satisfied: rsa>=3.1.4 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from oauth2client<5,>=2.0.1->apache-beam->object-detection==0.1) (4.7.2)
Requirement already satisfied: idna<4,>=2.5 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from requests<3.0.0,>=2.24.0->apache-beam->object-detection==0.1) (3.2)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from requests<3.0.0,>=2.24.0->apache-beam->object-detection==0.1) (1.26.6)
Requirement already satisfied: certifi>=2017.4.17 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from requests<3.0.0,>=2.24.0->apache-beam->object-detection==0.1) (2021.5.30)
Requirement already satisfied: charset-normalizer~=2.0.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from requests<3.0.0,>=2.24.0->apache-beam->object-detection==0.1) (2.0.3)
Collecting opencv-python>=4.1.0.25
  Using cached opencv_python-4.5.3.56-cp38-cp38-manylinux2014_x86_64.whl (49.9 MB)
Requirement already satisfied: kiwisolver>=1.1.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from lvis->object-detection==0.1) (1.3.1)
Requirement already satisfied: cycler>=0.10.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from lvis->object-detection==0.1) (0.10.0)
Requirement already satisfied: setuptools>=18.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from pycocotools->object-detection==0.1) (52.0.0.post20210125)
Collecting tensorflow-model-optimization>=0.4.1
  Using cached tensorflow_model_optimization-0.6.0-py2.py3-none-any.whl (211 kB)
Collecting tensorflow-hub>=0.6.0
  Using cached tensorflow_hub-0.12.0-py2.py3-none-any.whl (108 kB)
Collecting sacrebleu
  Using cached sacrebleu-1.5.1-py3-none-any.whl (54 kB)
Collecting pyyaml>=5.1
  Using cached PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)
Collecting gin-config
  Using cached gin_config-0.4.0-py2.py3-none-any.whl (46 kB)
Collecting kaggle>=1.3.9
  Using cached kaggle-1.5.12-py3-none-any.whl
Collecting psutil>=5.4.3
  Using cached psutil-5.8.0-cp38-cp38-manylinux2010_x86_64.whl (296 kB)
Collecting py-cpuinfo>=3.3.0
  Using cached py_cpuinfo-8.0.0-py3-none-any.whl
Collecting seqeval
  Using cached seqeval-1.2.2-py3-none-any.whl
Collecting opencv-python-headless
  Using cached opencv_python_headless-4.5.3.56-cp38-cp38-manylinux2014_x86_64.whl (37.1 MB)
Collecting tensorflow-addons
  Using cached tensorflow_addons-0.13.0-cp38-cp38-manylinux2010_x86_64.whl (679 kB)
Collecting tensorflow-datasets
  Using cached tensorflow_datasets-4.3.0-py3-none-any.whl (3.9 MB)
Collecting google-cloud-bigquery>=0.31.0
  Using cached google_cloud_bigquery-2.22.1-py2.py3-none-any.whl (195 kB)
Requirement already satisfied: tensorflow>=2.5.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from tf-models-official->object-detection==0.1) (2.5.0)
Collecting sentencepiece
  Using cached sentencepiece-0.1.96-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
Collecting google-api-python-client>=1.6.7
  Using cached google_api_python_client-2.14.0-py2.py3-none-any.whl (7.1 MB)
Requirement already satisfied: google-auth<3.0.0dev,>=1.16.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from google-api-python-client>=1.6.7->tf-models-official->object-detection==0.1) (1.33.1)
Collecting uritemplate<4dev,>=3.0.0
  Using cached uritemplate-3.0.1-py2.py3-none-any.whl (15 kB)
Collecting google-api-core<3.0.0dev,>=1.21.0
  Using cached google_api_core-1.31.0-py2.py3-none-any.whl (93 kB)
Collecting google-auth-httplib2>=0.1.0
  Using cached google_auth_httplib2-0.1.0-py2.py3-none-any.whl (9.3 kB)
Collecting googleapis-common-protos<2.0dev,>=1.6.0
  Using cached googleapis_common_protos-1.53.0-py2.py3-none-any.whl (198 kB)
Collecting packaging>=14.3
  Using cached packaging-21.0-py3-none-any.whl (40 kB)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from google-auth<3.0.0dev,>=1.16.0->google-api-python-client>=1.6.7->tf-models-official->object-detection==0.1) (4.2.2)
Collecting google-resumable-media<3.0dev,>=0.6.0
  Using cached google_resumable_media-1.3.1-py2.py3-none-any.whl (75 kB)
Collecting google-cloud-core<3.0.0dev,>=1.4.1
  Using cached google_cloud_core-1.7.1-py2.py3-none-any.whl (28 kB)
Collecting proto-plus>=1.10.0
  Using cached proto_plus-1.19.0-py3-none-any.whl (42 kB)
Collecting grpcio<2,>=1.29.0
  Using cached grpcio-1.39.0-cp38-cp38-manylinux2014_x86_64.whl (4.3 MB)
Collecting google-crc32c<2.0dev,>=1.0
  Using cached google_crc32c-1.1.2-cp38-cp38-manylinux2014_x86_64.whl (38 kB)
Collecting cffi>=1.0.0
  Using cached cffi-1.14.6-cp38-cp38-manylinux1_x86_64.whl (411 kB)
Collecting pycparser
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting tqdm
  Using cached tqdm-4.61.2-py2.py3-none-any.whl (76 kB)
Collecting python-slugify
  Using cached python_slugify-5.0.2-py2.py3-none-any.whl (6.7 kB)
Collecting six
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: tensorboard~=2.5 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from tensorflow>=2.5.0->tf-models-official->object-detection==0.1) (2.5.0)
Requirement already satisfied: astunparse~=1.6.3 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from tensorflow>=2.5.0->tf-models-official->object-detection==0.1) (1.6.3)
Requirement already satisfied: h5py~=3.1.0 in /home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages (from tensorflow>=2.5.0->tf-models-official->object-detection==0.1) (3.1.0)
INFO: pip is looking at multiple versions of pyyaml to determine which version is compatible with other requirements. This could take a while.
Collecting pyyaml>=5.1
  Using cached PyYAML-5.4-cp38-cp38-manylinux1_x86_64.whl (662 kB)
  Using cached PyYAML-5.3.1.tar.gz (269 kB)
  Using cached PyYAML-5.3.tar.gz (268 kB)
  Using cached PyYAML-5.2.tar.gz (265 kB)
  Using cached PyYAML-5.1.2.tar.gz (265 kB)
  Using cached PyYAML-5.1.1.tar.gz (274 kB)
  Using cached PyYAML-5.1.tar.gz (274 kB)
INFO: pip is looking at multiple versions of pyyaml to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of py-cpuinfo to determine which version is compatible with other requirements. This could take a while.
Collecting py-cpuinfo>=3.3.0
  Using cached py-cpuinfo-7.0.0.tar.gz (95 kB)
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
  Using cached py-cpuinfo-6.0.0.tar.gz (145 kB)
  Using cached py-cpuinfo-5.0.0.tar.gz (82 kB)
  Using cached py-cpuinfo-4.0.0.tar.gz (79 kB)
  Using cached py-cpuinfo-3.3.0.tar.gz (76 kB)
INFO: pip is looking at multiple versions of psutil to determine which version is compatible with other requirements. This could take a while.
Collecting psutil>=5.4.3
  Using cached psutil-5.7.3.tar.gz (465 kB)
INFO: pip is looking at multiple versions of py-cpuinfo to determine which version is compatible with other requirements. This could take a while.
  Using cached psutil-5.7.2.tar.gz (460 kB)
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
  Using cached psutil-5.7.1.tar.gz (460 kB)
  Using cached psutil-5.7.0.tar.gz (449 kB)
  Using cached psutil-5.6.7.tar.gz (448 kB)
  Using cached psutil-5.6.6.tar.gz (447 kB)
  Using cached psutil-5.6.5.tar.gz (447 kB)
INFO: pip is looking at multiple versions of psutil to determine which version is compatible with other requirements. This could take a while.
  Using cached psutil-5.6.4.tar.gz (447 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
  Using cached psutil-5.6.3.tar.gz (435 kB)
  Using cached psutil-5.6.2.tar.gz (432 kB)
  Using cached psutil-5.6.1.tar.gz (427 kB)
  Using cached psutil-5.6.0.tar.gz (426 kB)
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
  Using cached psutil-5.5.1.tar.gz (426 kB)
  Using cached psutil-5.5.0.tar.gz (425 kB)
  Using cached psutil-5.4.8.tar.gz (422 kB)
  Using cached psutil-5.4.7.tar.gz (420 kB)
  Using cached psutil-5.4.6.tar.gz (418 kB)
  Using cached psutil-5.4.5.tar.gz (418 kB)
  Using cached psutil-5.4.4.tar.gz (417 kB)
  Using cached psutil-5.4.3.tar.gz (412 kB)
INFO: pip is looking at multiple versions of proto-plus to determine which version is compatible with other requirements. This could take a while.
Collecting proto-plus>=1.10.0
  Using cached proto_plus-1.18.1-py3-none-any.whl (42 kB)
  Using cached proto_plus-1.18.0-py3-none-any.whl (42 kB)
  Using cached proto_plus-1.17.0-py3-none-any.whl (42 kB)
  Using cached proto_plus-1.16.0-py3-none-any.whl (42 kB)
  Using cached proto_plus-1.15.0-py3-none-any.whl (42 kB)
  Using cached proto_plus-1.14.2-py3-none-any.whl (42 kB)
  Using cached proto-plus-1.13.0.tar.gz (44 kB)
INFO: pip is looking at multiple versions of proto-plus to determine which version is compatible with other requirements. This could take a while.
  Using cached proto-plus-1.11.0.tar.gz (44 kB)
  Using cached proto-plus-1.10.2.tar.gz (42 kB)
  Using cached proto-plus-1.10.1.tar.gz (42 kB)
  Using cached proto-plus-1.10.0.tar.gz (24 kB)
INFO: pip is looking at multiple versions of packaging to determine which version is compatible with other requirements. This could take a while.
Collecting packaging>=14.3
  Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)
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 packaging-20.8-py2.py3-none-any.whl (39 kB)
  Downloading packaging-20.7-py2.py3-none-any.whl (35 kB)
  Downloading packaging-20.5-py2.py3-none-any.whl (35 kB)
  Downloading packaging-20.4-py2.py3-none-any.whl (37 kB)
  Downloading packaging-20.3-py2.py3-none-any.whl (37 kB)
  Downloading packaging-20.2-py2.py3-none-any.whl (37 kB)
INFO: pip is looking at multiple versions of packaging to determine which version is compatible with other requirements. This could take a while.
  Downloading packaging-20.1-py2.py3-none-any.whl (36 kB)
  Downloading packaging-20.0-py2.py3-none-any.whl (36 kB)
  Downloading packaging-19.2-py2.py3-none-any.whl (30 kB)
  Downloading packaging-19.1-py2.py3-none-any.whl (30 kB)
Collecting attrs
  Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
     |████████████████████████████████| 53 kB 2.9 MB/s 
Collecting packaging>=14.3
  Downloading packaging-19.0-py2.py3-none-any.whl (26 kB)
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 packaging-18.0-py2.py3-none-any.whl (21 kB)
  Downloading packaging-17.1-py2.py3-none-any.whl (24 kB)
  Downloading packaging-17.0-py2.py3-none-any.whl (23 kB)
  Downloading packaging-16.8-py2.py3-none-any.whl (23 kB)
  Downloading packaging-16.7-py2.py3-none-any.whl (22 kB)
  Downloading packaging-16.6-py2.py3-none-any.whl (22 kB)
  Downloading packaging-16.5-py2.py3-none-any.whl (22 kB)
  Downloading packaging-16.4-py2.py3-none-any.whl (22 kB)
  Downloading packaging-16.3-py2.py3-none-any.whl (22 kB)
  Downloading packaging-16.2-py2.py3-none-any.whl (22 kB)
  Downloading packaging-16.1-py2.py3-none-any.whl (21 kB)
  Downloading packaging-16.0-py2.py3-none-any.whl (19 kB)
  Downloading packaging-15.3-py2.py3-none-any.whl (18 kB)
  Downloading packaging-15.2-py2.py3-none-any.whl (18 kB)
  Downloading packaging-15.1-py2.py3-none-any.whl (17 kB)
  Downloading packaging-15.0-py2.py3-none-any.whl (17 kB)
  Downloading packaging-14.5-py2.py3-none-any.whl (16 kB)
  Downloading packaging-14.4-py2.py3-none-any.whl (16 kB)
  Downloading packaging-14.3-py2.py3-none-any.whl (16 kB)
INFO: pip is looking at multiple versions of kaggle to determine which version is compatible with other requirements. This could take a while.
Collecting kaggle>=1.3.9
  Downloading kaggle-1.5.10.tar.gz (59 kB)
     |████████████████████████████████| 59 kB 2.4 MB/s 
  Downloading kaggle-1.5.9.tar.gz (58 kB)
     |████████████████████████████████| 58 kB 1.4 MB/s 
Collecting slugify
  Downloading slugify-0.0.1.tar.gz (1.2 kB)
ERROR: Exception:
Traceback (most recent call last):
  File "/home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 180, in _main
    status = self.run(options, args)
  File "/home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 318, in run
    requirement_set = resolver.resolve(
  File "/home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 127, in resolve
    result = self._result = resolver.resolve(
  File "/home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 473, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/home/labuser/anaconda3/envs/tf/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 384, in resolve
    raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000

It took multiple hours to time out. However, it worked the next time I ran the installation command, and only took a minute. I would recommend just letting it go through the dependencies until it works out, as pip recommends.