I need to use gdal2tiles with Anaconda 3 on Ubuntu 18.04. I've created the environment using:
conda create --name gisenv python=3.6
I've installed GDAL with:
conda install gdal
After this I've created a simple python script import gdal2tiles
but I see this error message:
ModuleNotFoundError: No module named 'gdal2tiles'
I thought that using conda install gdal2tiles would solve the problem but I see this message:
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:
- gdal2tiles
Current channels:
- https://repo.anaconda.com/pkgs/main/linux-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/linux-64
- https://repo.anaconda.com/pkgs/r/noarch
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.
How I can solve?