title: Tensorflow Object Detection Api M1 Macbook Conflict Error
body: <p>Machine: <strong>MacBook Air M1 2020</strong></p>
  <p>OS: <strong>macOs BigSur 11.4</strong></p>
  <p>Python    version of venv: <strong>Python 3.8.6</strong></p>
  <p>Tensorflow version: <strong>ATF Apple    Tensorflow 0.1a3</strong></p>
  <p>Pip version: <strong>21.2.4</strong></p>
  <p>I have installed Tensorflow from <a href="https:////github.com/apple/tensorflow_macos" rel="nofollow noreferrer">github</a> using <a href="https://towardsdatascience.com/installing-tensorflow-on-the-m1-mac-410bb36b776" rel="nofollow noreferrer">this guide</a>.</p>
  <hr />
  <p>Now, my pip list is this.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Package                 Version
  ----------------------- ---------
  absl-py                 0.13.0
  appnope                 0.1.2
  astunparse              1.6.3
  backcall                0.2.0
  cached-property         1.5.2
  cachetools              4.2.2
  certifi                 2021.5.30
  charset-normalizer      2.0.4
  cycler                  0.10.0
  Cython                  0.29.24
  debugpy                 1.4.1
  decorator               5.0.9
  entrypoints             0.3
  flatbuffers             2.0
  gast                    0.5.2
  google-auth             1.35.0
  google-auth-oauthlib    0.4.5
  google-pasta            0.2.0
  grpcio                  1.33.2
  h5py                    2.10.0
  idna                    3.2
  ipykernel               6.2.0
  ipython                 7.26.0
  ipython-genutils        0.2.0
  jedi                    0.18.0
  jupyter-client          7.0.1
  jupyter-core            4.7.1
  Keras-Preprocessing     1.1.2
  kiwisolver              1.3.1
  Markdown                3.3.4
  matplotlib              3.4.3
  matplotlib-inline       0.1.2
  nest-asyncio            1.5.1
  numpy                   1.18.5
  oauthlib                3.1.1
  opt-einsum              3.3.0
  packaging               21.0
  parso                   0.8.2
  pexpect                 4.8.0
  pickleshare             0.7.5
  Pillow                  8.3.1
  pip                     21.2.4
  prompt-toolkit          3.0.20
  protobuf                3.17.3
  ptyprocess              0.7.0
  pyasn1                  0.4.8
  pyasn1-modules          0.2.8
  Pygments                2.10.0
  pyparsing               2.4.7
  python-dateutil         2.8.2
  pyzmq                   22.2.1
  requests                2.26.0
  requests-oauthlib       1.3.0
  rsa                     4.7.2
  setuptools              57.4.0
  six                     1.16.0
  tensorboard             2.6.0
  tensorboard-data-server 0.6.1
  tensorboard-plugin-wit  1.8.0
  tensorflow-addons       0.1a3
  tensorflow-estimator    2.6.0
  tensorflow-hub          0.12.0
  tensorflow              0.1a3
  termcolor               1.1.0
  tornado                 6.1
  traitlets               5.0.5
  typeguard               2.12.1
  typing-extensions       3.10.0.0
  urllib3                 1.26.6
  wcwidth                 0.2.5
  Werkzeug                2.0.1
  wheel                   0.37.0
  wrapt                   1.12.1</code></pre>
  </div>
  </div>
  </p>
  <p>I want install Object Detection Api from Tensorflow in that <a href="https://github.com/tensorflow/models" rel="nofollow noreferrer">link</a>.</p>
  <hr />
  <p>I cloned the repo and them I follow the <a href="https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2.md" rel="nofollow noreferrer">guide</a>. (Python Package Installation)</p>
  <hr />
  <p>When I execute this command</p>
  <pre><code>python -m pip install --use-feature=2020-resolver .
  </code></pre>
  <p>It starts to download, and start a print very long errors.</p>
  <p>At the end of the operations, it gives me this error.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  Using cached scipy-1.2.3.tar.gz (23.3 MB)
  Collecting pandas
    Using cached pandas-1.3.2-cp38-cp38-macosx_11_0_arm64.whl
  Collecting tf-models-official&gt;=2.5.1
    Using cached tf_models_official-2.6.0-py2.py3-none-any.whl (1.8 MB)
  Collecting kaggle&gt;=1.3.9
    Using cached kaggle-1.5.12-py3-none-any.whl
  Collecting py-cpuinfo&gt;=3.3.0
    Using cached py_cpuinfo-8.0.0-py3-none-any.whl
  Requirement already satisfied: numpy&gt;=1.15.4 in /Users/stefan/Desktop/Studio/TFOD/tf-m1/lib/python3.8/site-packages (from tf-models-official&gt;=2.5.1-&gt;object-detection==0.1) (1.18.5)
  Collecting opencv-python-headless
    Using cached opencv_python_headless-4.5.3.56-cp38-cp38-macosx_11_0_arm64.whl (10.7 MB)
  Collecting tf-models-official&gt;=2.5.1
    Using cached tf_models_official-2.5.1-py2.py3-none-any.whl (1.6 MB)
  Collecting tensorflow-datasets
    Using cached tensorflow_datasets-4.4.0-py3-none-any.whl (4.0 MB)
  Collecting google-api-python-client&gt;=1.6.7
    Downloading google_api_python_client-2.18.0-py2.py3-none-any.whl (7.4 MB)
       |████████████████████████████████| 7.4 MB 3.4 MB/s 
  Collecting oauth2client
    Using cached oauth2client-4.1.3-py2.py3-none-any.whl (98 kB)
  Collecting tensorflow-model-optimization&gt;=0.4.1
    Using cached tensorflow_model_optimization-0.6.0-py2.py3-none-any.whl (211 kB)
  Collecting pyyaml&gt;=5.1
    Downloading PyYAML-5.4.1.tar.gz (175 kB)
       |████████████████████████████████| 175 kB 31.3 MB/s 
    Installing build dependencies ... done
    Getting requirements to build wheel ... done
      Preparing wheel metadata ... done
  Collecting gin-config
    Using cached gin_config-0.4.0-py2.py3-none-any.whl (46 kB)
  Collecting sacrebleu
    Using cached sacrebleu-2.0.0-py3-none-any.whl (90 kB)
  INFO: pip is looking at multiple versions of &lt;Python from Requires-Python&gt; to determine which version is compatible with other requirements. This could take a while.
  INFO: pip is looking at multiple versions of object-detection to determine which version is compatible with other requirements. This could take a while.
  ERROR: Cannot install object-detection because these package versions have conflicting dependencies.
  
  The conflict is caused by:
      tf-models-official 2.6.0 depends on tensorflow-text&gt;=2.5.0
      tf-models-official 2.5.1 depends on tensorflow-addons
  
  To fix this you could try to:
  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict
  
  ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies</code></pre>
  </div>
  </div>
  </p>