title: How does Poetry work regarding binary dependencies? (esp. numpy)
body: <p>Until now I have been using conda as virtual environment and dependency management. However, some stuff does not work as expected when transfering my environment.yml file from my development machine to the production server. Now, I would like to look into alternatives. Poetry seems nice, especially because</p>
  <blockquote>
  <p>poetry also maintains a lock file, and it has a benefit over pipenv because it keeps track of which packages are subdependencies. (<a href="https://realpython.com/effective-python-environment/#poetry" rel="noreferrer">https://realpython.com/effective-python-environment/#poetry</a>)</p>
  </blockquote>
  <p>which might improve stability quite a bit. However, I am working on <a href="https://en.wikipedia.org/wiki/Numerical_analysis" rel="noreferrer">science-heavy projects</a> (matrices, data science, machine learning), so in practise I need the scipy stack (e.g. numpy, pandas, scitkit-learn).</p>
  <blockquote>
  <p>Python became too slow for some pure computational workloads so numpy and scipy were born. [...] They are written in C and just wrapped as a python library.</p>
  <p>Compiling such libraries brings a set of challenges since they (more or less) have to be compiled on your machine for maximum performance and proper linking with libraries like glibc.</p>
  <p>Conda was introduced as an all-in-one solution to manage python environments for the scientific community.</p>
  <p>[...] Instead of using a fragile process of compiling libraries on your machine, libraries are precompiled and just downloaded when you request them. Unfortunately, the solution comes with a caveat - conda does not use PyPI, the most popular index of python packages.</p>
  <p>(<a href="https://modelpredict.com/python-dependency-management-tools#fnref:conda-compiling-challenges" rel="noreferrer">https://modelpredict.com/python-dependency-management-tools#fnref:conda-compiling-challenges</a>)</p>
  </blockquote>
  <p>As far as I know, this doesn't even do Conda justice, because it does quite a bit of optimization to get the most out of my CPU/GPU/architecture for numpy. (<a href="https://jakevdp.github.io/blog/2016/08/25/conda-myths-and-misconceptions/#Myth-#6:-Now-that-pip-uses-wheels,-conda-is-no-longer-necessary" rel="noreferrer">https://jakevdp.github.io/blog/2016/08/25/conda-myths-and-misconceptions/#Myth-#6:-Now-that-pip-uses-wheels,-conda-is-no-longer-necessary</a>)</p>
  <p><a href="https://numpy.org/install/" rel="noreferrer">https://numpy.org/install/</a> itself advises to use conda, but also says that one can install via pip (and poetry uses pypi)</p>
  <blockquote>
  <p>For users who know, from personal preference or reading about the main differences between conda and pip below, they prefer a pip/PyPI-based solution, we recommend:</p>
  <p>[...] Use Poetry as the most well-maintained tool that provides a dependency resolver and environment management capabilities in a similar fashion as conda does.</p>
  </blockquote>
  <p>I would like to get the stability of the poetry setup and the speed of the conda setup.</p>
  <p><strong>How does poetry handle binary dependencies?
  Does it also, like conda, consider my hardware?</strong></p>
  <p>If poetry not deliver in this regard, can I combine it with conda?</p>