Installation error - Numpy and its headers are required to run setup()
See original GitHub issueBoth 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:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
When rio-color 1.0.1 comes out
The issue here is that
rio-color
doesn’t provide wheels (yet), which means that to installrio-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 beforerio-color
is attempted to be installed.So I believe the correct solution here is to define
numpy
as a build dependency (or reallyrio-color
should do that, I might make a PR) so that it’s installed beforerio-color
is attempted to be installed.