silmae/fpipy

pip install script doesn't work on windows

Closed this issue · 1 comments

Here's the error message:

(fpipy) C:\MyTemp\fpipy>pip install .
Processing c:\mytemp\fpipy
Collecting numpy (from fpipy==0.1.0)
  Downloading https://files.pythonhosted.org/packages/2e/11/f006363050b24fb19a235e5efd219e7ac549398d531110d80b8f2ba3a909/numpy-1.16.3-cp36-cp36m-win_amd64.whl (11.9MB)
    100% |████████████████████████████████| 11.9MB 3.1MB/s
Requirement already satisfied: xarray in c:\mytemp\miniconda3\lib\site-packages (from fpipy==0.1.0) (0.10.6)
Collecting rasterio (from fpipy==0.1.0)
  Downloading https://files.pythonhosted.org/packages/ce/90/8af39cdfed9a40bd59801f101f74eab5f1562d3557806ddfa2ed86d4be0b/rasterio-1.0.22.tar.gz (1.9MB)
    100% |████████████████████████████████| 1.9MB 6.0MB/s
    Complete output from command python setup.py egg_info:
    ERROR: Numpy and its headers are required to run setup().

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\MyTemp\Temp\pip-install-eyubteat\rasterio\

My guess is that it has something to do with rasterio. It has been a trouble for me earlier while installing other stuff. I usually install it separately.

Rasterio has been made an optional dependency if you need it for ENVI, so now installing through pip should work fine for most cases. The optional dependency will probably still fail, but that is down to rasterio being a nasty install without using conda.