developmentseed / label-maker

Data Preparation for Satellite Machine Learning
http://devseed.com/label-maker/
MIT License
460 stars 110 forks source link

Not able to install label-maker on mac using the command pip install label-maker? #154

Closed PallawiSinghal closed 4 years ago

PallawiSinghal commented 4 years ago

Hi, I am facing issue to install label-maker on my mac using the command pip install label-maker. I am trying to install all the dependencies in an anaconda environment. Anaconda 4.0.1

I am using python 3.6.9 and have installed tippecanoe.

Please help. I have invested a lot of time just setting up the environment. Please provide a detail readme for the users.

I get the below error:

bash-3.2$ conda install --file requirements.txt Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

drewbo commented 4 years ago

Are you using pip or conda? Using both in conjunction can create some conflicts and many of our dependencies are not available directly through conda forge endpoints

PallawiSinghal commented 4 years ago

Are you using pip or conda? Using both in conjunction can create some conflicts and many of our dependencies are not available directly through conda forge endpoints.

Thank you for the reply. After installing all the dependencies with conda one at a time. I am left with 'rasterio[s3]' installation. Can you please help how we can install 'rasterio[s3]' on mac os.

PallawiSinghal commented 4 years ago

When I use this command : conda install -c https://conda.anaconda.org/ioos rasterio

I get this error:

Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: | Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed /

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Package readline conflicts for: python=3.6.0 -> readline=6.2 Package openssl conflicts for: python=3.6.0 -> openssl=1.0 Package affine conflicts for: rasterio -> affine[version='>=1.3.0'] Package zlib conflicts for: python=3.6.0 -> zlib=1.2 Package snuggs conflicts for: rasterio -> snuggs[version='>=1.2|>=1.4.1'] Package numpy conflicts for: rasterio -> numpy[version='1.11.|>=1.11.3,<2.0a0|>=1.14.6,<2.0a0|>=1.9.3,<2.0a0'] Package click conflicts for: rasterio -> click[version='>=4,<8'] Package xz conflicts for: python=3.6.0 -> xz=5.2 Package sqlite conflicts for: python=3.6.0 -> sqlite=3.13 Package pip conflicts for: python=3.6.0 -> pip Package libcxx conflicts for: rasterio -> libcxx[version='>=4.0.1|>=9.0.0'] Package boto3 conflicts for: rasterio -> boto3[version='>=1.2.4'] Package tk conflicts for: python=3.6.0 -> tk=8.5 Package setuptools conflicts for: rasterio -> setuptools[version='>=0.9.8'] Package attrs conflicts for: rasterio -> attrs[version='>=16.0.0'] Package enum34 conflicts for: rasterio -> enum34 Package cligj conflicts for: rasterio -> cligj[version='>=0.5'] Package proj4 conflicts for: rasterio -> proj4[version='<6,>=5.2.0,<5.2.1.0a0'] Package click-plugins conflicts for: rasterio -> click-plugins Package gdal conflicts for: rasterio -> gdal=2.1 Package libgdal conflicts for: rasterio -> libgdal[version='2.4.,>=2.4.2,<2.5.0a0|>=2.2.2,<2.3.0a0|>=2.2.4,<2.3.0a0|>=2.3.3,<2.4.0a0|>=2.4.1,<2.5.0a0|>=2.4.2,<2.5.0a0|>=3.0.1,<3.1.0a0|>=3.0.2,<3.1.0a0']

drewbo commented 4 years ago

Can you try the instructions on rasterio's installation page:

conda install -c conda-forge rasterio

I'm not as familiar with conda so I'm not positive how to debug

PallawiSinghal commented 4 years ago

Finallly I was able to install it on linux.

using sudo python -m pip install -r requirements.txt