question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

poetry install does not use available binary for numpy 1.19.2

See original GitHub issue

Issue

When running poetry install the installation of numpy 1.19.2 (using pyenv-installed Python 3.8.2) takes very long (~minutes) and seems to compile from source.

However, running pip install numpy==1.19.2 yields

Collecting numpy==1.19.2
  Using cached https://files.pythonhosted.org/packages/33/1a/d10d1c23d21c289a3e87e751a9daf0907e91665cab08d0c35033fd4f5b55/numpy-1.19.2-cp38-cp38-macosx_10_9_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.19.2
WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

within a few seconds.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

7reactions
jtc42commented, Oct 20, 2020

Worth noting that running poetry config experimental.new-installer false beforehand fixes this for me.

5reactions
jurgispodscommented, Oct 21, 2020

@naveen521kk As it turns out, the poetry version installed via Homebrew uses a hardcoded Homebrew-installed Python 3.9. The maintainers do not seem to see any issues with that: https://github.com/Homebrew/homebrew-core/issues/53169

I think this restricts the functionality of poetry in an unacceptable way. Solution: Use the official installer.

brew uninstall poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
Read more comments on GitHub >

github_iconTop Results From Across the Web

How does Poetry work regarding binary dependencies? (esp ...
I've being facing issues all day with numpy failing install (with pandas) for Python 3.9.1.6 and poetry 1.1.4. I understood that poetry uses...
Read more >
I can't install TensorFlow-macos a… | Apple Developer Forums
Yes, I am running python 3.8.10. And for whl files, I am using MacBook Pro 16' with intel CPU, so, I do have...
Read more >
building wheel for numpy (pep 517) ... error
Getting an error saying "Could not build wheels for numpy which use PEP 517 and cannot be installed directly" while installing numpy.
Read more >
Conda Pip and All That - Washington State University
In any case, do not use or update the version of python installed for use by the ... conda is a full binary...
Read more >
Pipenv vs Conda (for Data Scientists) | by Dr Soumaya Mauthoor
Whilst it is possible to install PyPI packages using pip in conda environments, this requires all ... numpy 1.19.2-py37h54aff64_0 → 1.15.3-py37h99e49ec_0
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found