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.

Installation error - Numpy and its headers are required to run setup()

See original GitHub issue

Both installation methods failed on my computer with a fresh conda env. After explicitly installing numpy, then the installation went smoothly. Does numpy need to be strictly declared dependency for titiler? I found this relevant issue.

OS: Manjaro KDE Linux Python version: 3.8

$ pip install -U pip
$ pip install titiler["server"]

# Or from sources
$ git clone https://github.com/developmentseed/titiler.git
$ cd titiler && pip install -e .["server"]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
kylebarroncommented, Dec 9, 2020

When rio-color 1.0.1 comes out

2reactions
kylebarroncommented, Dec 5, 2020

The issue here is that rio-color doesn’t provide wheels (yet), which means that to install rio-color all installations must build from source. Since it links to Numpy, it needs Numpy’s headers while compiling.

This is a bit of a chicken-and-egg issue because if we define numpy as an installation requirement, it won’t get installed before rio-color is attempted to be installed.

So I believe the correct solution here is to define numpy as a build dependency (or really rio-color should do that, I might make a PR) so that it’s installed before rio-color is attempted to be installed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — rasterio documentation - Read the Docs
Rasterio is a Python C extension and to build you'll need a working compiler (XCode on OS X etc). You'll also need Numpy...
Read more >
Error when installing using pip - python - Stack Overflow
Firstly, you need the python-dev package because Pillow needs compile headers defined. sudo apt-get install python-dev.
Read more >
Setting up and using your development environment - NumPy
A frequently asked question is “How do I set up a development version of NumPy in parallel to a released version that I...
Read more >
Installation — h5py 3.7.0 documentation
Make sure that that you have the development headers, as they are usually not installed by default. They can usually be found in...
Read more >
running setup.py install for numpy did not run successfully.
This error could be caused by the fact that you haven't installed the wheel package. Depending on your system , check out how...
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