title: Receiving EnvCommandError when run poetry install on Apple M1 MacOs Monterey
body: <p>I'm facing the issue when running <code>poetry install</code> command in my new Macbook Pro using Apple M1 chip and MacOS Monterey. I tried many suggestions so far but still cannot make it fixed.
  Python version: 3.8.12</p>
  <pre><code>&gt;&gt;&gt; poetry install                     
  Installing dependencies from lock file
  
  Package operations: 20 installs, 0 updates, 0 removals
  
    • Installing scipy (1.6.0): Failed
  
    EnvCommandError
  
    Command ['/Users/&lt;retacted&gt;/Library/Caches/pypoetry/virtualenvs/reporting-executor-3zOoUFwf-py3.8/bin/pip', 'install', '--no-deps', 'file:///Users/&lt;retacted&gt;/Library/Caches/pypoetry/artifacts/e2/fc/a9/d781fc7053c9e0aa0b94b47220fee30ba4ef114e7d11b36b3cc68b1b95/scipy-1.6.0.tar.gz'] errored with the following return code 1, and output: 
    Processing /Users/&lt;retacted&gt;/Library/Caches/pypoetry/artifacts/e2/fc/a9/d781fc7053c9e0aa0b94b47220fee30ba4ef114e7d11b36b3cc68b1b95/scipy-1.6.0.tar.gz
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /Users/&lt;retacted&gt;/Library/Caches/pypoetry/virtualenvs/reporting-executor-3zOoUFwf-py3.8/bin/python /Users/&lt;retacted&gt;/Library/Caches/pypoetry/virtualenvs/reporting-executor-3zOoUFwf-py3.8/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/54/n12zwf1n74vg5knvnd37ph880000gp/T/tmpusexpj06
           cwd: /private/var/folders/54/n12zwf1n74vg5knvnd37ph880000gp/T/pip-req-build-xbw8rqq2
      Complete output (4 lines):
      setup.py:461: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /private/var/folders/54/n12zwf1n74vg5knvnd37ph880000gp/T/pip-modern-metadata-1_oeqwwo'), proceeding with generating Cython sources and expanding templates
        warnings.warn(&quot;Unrecognized setuptools command ('{}'), proceeding with &quot;
      Error: 'None' must be installed before running the build.
  </code></pre>
  <p>Here is what I tried:</p>
  <ul>
  <li>Running the terminal under Rosetta mode</li>
  <li>I can be able to install <code>scipy</code> via the command <code>arch -arm64 pip install scipy</code> without issue but the version is 1.7.3</li>
  <li>Tried <code>arch -arm64 pip install scipy==1.6.0</code> getting the error</li>
  </ul>
  <pre><code>error: subprocess-exited-with-error
    
    × Preparing metadata (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─&gt; [4 lines of output]
        setup.py:461: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /private/var/folders/54/n12zwf1n74vg5knvnd37ph880000gp/T/pip-modern-metadata-rsi6te2b'), proceeding with generating Cython sources and expanding templates
          warnings.warn(&quot;Unrecognized setuptools command ('{}'), proceeding with &quot;
        Error: 'None' must be installed before running the build.
        
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: metadata-generation-failed
  
  × Encountered error while generating package metadata.
  ╰─&gt; See above for output.
  
  note: This is an issue with the package mentioned above, not pip.
  </code></pre>