Geoviews ImportError: Numba needs NumPy 1.21 or less

When I want to use Geoviews:

from geoviews.operation.regrid import weighted_regrid

Then, I got an import error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 from geoviews.operation.regrid import weighted_regrid

File /opt/anaconda3/lib/python3.9/site-packages/geoviews/operation/regrid.py:14, in <module>
     12 from holoviews.core.data import XArrayInterface
     13 from holoviews.element import Image as HvImage, QuadMesh as HvQuadMesh
---> 14 from holoviews.operation.datashader import regrid
     16 from ..element import Image, QuadMesh, is_geographic
     19 class weighted_regrid(regrid):

File /opt/anaconda3/lib/python3.9/site-packages/holoviews/operation/datashader.py:10, in <module>
      8 import pandas as pd
      9 import xarray as xr
---> 10 import datashader as ds
     11 import datashader.reductions as rd
     12 import datashader.transfer_functions as tf

File /opt/anaconda3/lib/python3.9/site-packages/datashader/__init__.py:8, in <module>
      5 import param
      6 __version__ = str(param.version.Version(fpath=__file__, archive_commit="$Format:%h$",reponame="datashader"))
----> 8 from .core import Canvas                                 # noqa (API import)
      9 from .reductions import *                                # noqa (API import)
     10 from .glyphs import Point                                # noqa (API import)

File /opt/anaconda3/lib/python3.9/site-packages/datashader/core.py:13, in <module>
     10 from xarray import DataArray, Dataset
     11 from collections import OrderedDict
---> 13 from .utils import Dispatcher, ngjit, calc_res, calc_bbox, orient_array, \
     14     dshape_from_xarray_dataset
     15 from .utils import get_indices, dshape_from_pandas, dshape_from_dask
     16 from .utils import Expr # noqa (API import)

File /opt/anaconda3/lib/python3.9/site-packages/datashader/utils.py:8, in <module>
      4 import re
      6 from inspect import getmro
----> 8 import numba as nb
      9 import numpy as np
     10 import pandas as pd

File /opt/anaconda3/lib/python3.9/site-packages/numba/__init__.py:200, in <module>
    197     return False
    199 _ensure_llvm()
--> 200 _ensure_critical_deps()
    202 # we know llvmlite is working as the above tests passed, import it now as SVML
    203 # needs to mutate runtime options (sets the `-vector-library`).
    204 import llvmlite

File /opt/anaconda3/lib/python3.9/site-packages/numba/__init__.py:140, in _ensure_critical_deps()
    138     raise ImportError("Numba needs NumPy 1.18 or greater")
    139 elif numpy_version > (1, 21):
--> 140     raise ImportError("Numba needs NumPy 1.21 or less")
    142 try:
    143     import scipy

ImportError: Numba needs NumPy 1.21 or less

However, when I install the numpy==1.21.0, my previours work got Error:

import numpy as np
import pandas as pd
from pathlib import Path
import holoviews as hv
import geoviews as gv
import geoviews.feature as gf
from geoviews import opts
import xarray as xr
from cartopy import crs

gv.extension(‘matplotlib’, ‘bokeh’)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Input In [1], in <cell line: 5>()
      3 from pathlib import Path
      4 import holoviews as hv
----> 5 import geoviews as gv
      6 import geoviews.feature as gf
      7 from geoviews import opts

File /opt/anaconda3/lib/python3.9/site-packages/geoviews/__init__.py:13, in <module>
     10 except:
     11     pass
---> 13 from .annotators import annotate # noqa (API import)
     14 from .element import ( # noqa (API import)
     15     _Element, Feature, Tiles, WMTS, LineContours, FilledContours,
     16     Text, Image, Points, Path, Polygons, Shape, Dataset, RGB,
     17     Contours, Graph, TriMesh, Nodes, EdgePaths, QuadMesh, VectorField,
     18     HexTiles, Labels, Rectangles, Segments
     19 )
     20 from .util import load_tiff, from_xarray # noqa (API import)

File /opt/anaconda3/lib/python3.9/site-packages/geoviews/annotators.py:12, in <module>
      9 from holoviews.plotting.links import DataLink, VertexTableLink as hvVertexTableLink
     10 from panel.util import param_name
---> 12 from .element import Path
     13 from .models.custom_tools import CheckpointTool, RestoreTool, ClearTool
     14 from .links import VertexTableLink, PointTableLink, HvRectanglesTableLink, RectanglesTableLink

File /opt/anaconda3/lib/python3.9/site-packages/geoviews/element/__init__.py:6, in <module>
      1 from holoviews.element import (
      2     ElementConversion, Points as HvPoints, Polygons as HvPolygons,
      3     Path as HvPath
      4 )
----> 6 from .geo import (_Element, Feature, Tiles, is_geographic,     # noqa (API import)
      7                   WMTS, Points, Image, Text, LineContours, RGB,
      8                   FilledContours, Path, Polygons, Shape, Dataset,
      9                   Contours, TriMesh, Graph, Nodes, EdgePaths, QuadMesh,
     10                   VectorField, Labels, HexTiles, Rectangles, Segments)
     13 class GeoConversion(ElementConversion):
     14     """
     15     GeoConversion is a very simple container object which can
     16     be given an existing Dataset and provides methods to convert
   (...)
     21     Elements.
     22     """

File /opt/anaconda3/lib/python3.9/site-packages/geoviews/element/geo.py:28, in <module>
     25 from shapely.ops import unary_union
     27 try:
---> 28     from iris.cube import Cube
     29 except ImportError:
     30     Cube = None

File /opt/anaconda3/lib/python3.9/site-packages/iris/cube.py:37, in <module>
     35 import iris._merge
     36 import iris.analysis
---> 37 from iris.analysis.cartography import wrap_lons
     38 import iris.analysis.maths
     39 import iris.aux_factory

File /opt/anaconda3/lib/python3.9/site-packages/iris/analysis/cartography.py:16, in <module>
     13 import warnings
     15 import cartopy.crs as ccrs
---> 16 import cartopy.img_transform
     17 import cf_units
     18 import numpy as np

File /opt/anaconda3/lib/python3.9/site-packages/cartopy/img_transform.py:14, in <module>
     12 import numpy as np
     13 try:
---> 14     import pykdtree.kdtree
     15     _is_pykdtree = True
     16 except ImportError:

File pykdtree/kdtree.pyx:1, in init pykdtree.kdtree()

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I am using the Arm MAC with python version 3.9.

It would help to know what version of GeoViews you have and from which channel you installed it, same for the other packages in your environment. Could you post the output of conda info and conda list?

The geoviews version is 1.9.5.

conda infor:

conda list:

# Name                    Version                   Build  Channel
_anaconda_depends         2022.05                  py39_0  
_ipyw_jlab_nb_ext_conf    0.1.0            py39hecd8cb5_1  
affine                    2.3.1                    pypi_0    pypi
aiohttp                   3.8.1            py39hca72f7f_1  
aiosignal                 1.2.0              pyhd3eb1b0_0  
alabaster                 0.7.12             pyhd3eb1b0_0  
anaconda                  custom                   py39_1  
anaconda-client           1.10.0           py39hecd8cb5_0  
anaconda-navigator        2.2.0            py39hecd8cb5_0  
anaconda-project          0.11.0           py39hecd8cb5_0  
antlr-python-runtime      4.7.2           py39h6e9494a_1003    conda-forge
anyio                     3.5.0            py39hecd8cb5_0  
appdirs                   1.4.4              pyhd3eb1b0_0  
applaunchservices         0.2.1              pyhd3eb1b0_0  
appnope                   0.1.2           py39hecd8cb5_1001  
appscript                 1.1.2            py39h9ed2024_0  
argon2-cffi               21.3.0             pyhd3eb1b0_0  
argon2-cffi-bindings      21.2.0           py39hca72f7f_0  
arrow                     1.2.2              pyhd3eb1b0_0  
astroid                   2.6.6            py39hecd8cb5_0  
astropy                   5.1              py39h67323c0_0  
asttokens                 2.0.5              pyhd3eb1b0_0  
async-timeout             4.0.1              pyhd3eb1b0_0  
atomicwrites              1.4.0                      py_0  
attrs                     21.4.0             pyhd3eb1b0_0  
automat                   20.2.0                     py_0  
autopep8                  1.6.0              pyhd3eb1b0_0  
babel                     2.9.1              pyhd3eb1b0_0  
backcall                  0.2.0              pyhd3eb1b0_0  
backports                 1.1                pyhd3eb1b0_0  
backports.functools_lru_cache 1.6.4              pyhd3eb1b0_0  
backports.tempfile        1.0                pyhd3eb1b0_1  
backports.weakref         1.0.post1                  py_1  
bcrypt                    3.2.0            py39h9ed2024_0  
beautifulsoup4            4.11.1           py39hecd8cb5_0  
binaryornot               0.4.4              pyhd3eb1b0_1  
bitarray                  2.5.1            py39hca72f7f_0  
bkcharts                  0.2              py39hecd8cb5_1  
black                     19.10b0                    py_0  
blas                      1.0                         mkl  
bleach                    4.1.0              pyhd3eb1b0_0  
blosc                     1.21.0               h2842e9f_0  
bokeh                     2.4.3            py39hecd8cb5_0  
boto3                     1.24.28          py39hecd8cb5_0  
botocore                  1.27.28          py39hecd8cb5_0  
bottleneck                1.3.5            py39h67323c0_0  
branca                    0.5.0              pyhd8ed1ab_0    conda-forge
brotli                    1.0.9                hb1e8313_2  
brotlipy                  0.7.0           py39h9ed2024_1003  
brunsli                   0.1                  h23ab428_0  
bzip2                     1.0.8                h1de35cc_0  
c-ares                    1.18.1               hca72f7f_0  
ca-certificates           2022.6.15            h033912b_0    conda-forge
cachetools                4.2.2              pyhd3eb1b0_0  
cadati                    0.0.2                    pypi_0    pypi
cairo                     1.16.0               h691a603_2  
cartopy                   0.19.0.post1             pypi_0    pypi
certifi                   2022.6.15        py39h6e9494a_0    conda-forge
cf-units                  3.0.1            py39hc89836e_2    conda-forge
cffi                      1.15.0           py39hc55c11b_1  
cfitsio                   3.470                hee0f690_6  
cftime                    1.5.1.1          py39h67323c0_0  
chardet                   4.0.0           py39hecd8cb5_1003  
charls                    2.2.0                h23ab428_0  
charset-normalizer        2.0.4              pyhd3eb1b0_0  
click                     8.0.4            py39hecd8cb5_0  
click-plugins             1.1.1              pyhd3eb1b0_0  
cligj                     0.7.2            py39hecd8cb5_0  
cloudpickle               2.0.0              pyhd3eb1b0_0  
clyent                    1.2.2            py39hecd8cb5_1  
colorama                  0.4.5            py39hecd8cb5_0  
colorcet                  3.0.0            py39hecd8cb5_0  
conda                     4.13.0           py39h6e9494a_1    conda-forge
conda-build               3.21.8           py39hecd8cb5_2  
conda-content-trust       0.1.3            py39hecd8cb5_0  
conda-env                 2.6.0                         1  
conda-pack                0.6.0              pyhd3eb1b0_0  
conda-package-handling    1.8.1            py39hca72f7f_0  
conda-repo-cli            1.0.5            py39hecd8cb5_0  
conda-token               0.3.0              pyhd3eb1b0_0  
conda-verify              3.4.2                      py_1  
configobj                 5.0.6                    pypi_0    pypi
configparser              5.2.0                    pypi_0    pypi
constantly                15.1.0             pyh2b92418_0  
cookiecutter              1.7.3              pyhd3eb1b0_0  
cramjam                   2.5.0                    pypi_0    pypi
cryptography              37.0.1           py39hf6deb26_0  
cssselect                 1.1.0              pyhd3eb1b0_0  
curl                      7.84.0               hca72f7f_0  
cycler                    0.11.0             pyhd3eb1b0_0  
cython                    0.29.30          py39he9d5cce_0  
cytoolz                   0.11.0           py39h9ed2024_0  
daal4py                   2021.5.0         py39h24a4e90_0  
dal                       2021.5.0           hecd8cb5_782  
dask                      2022.7.0         py39hecd8cb5_0  
dask-core                 2022.7.0         py39hecd8cb5_0  
dataclasses               0.8                pyh6d0b6a4_7  
datashader                0.14.1           py39hecd8cb5_0  
datashape                 0.5.4            py39hecd8cb5_1  
datedown                  0.3                      pypi_0    pypi
debugpy                   1.5.1            py39he9d5cce_0  
decorator                 5.1.1              pyhd3eb1b0_0  
defusedxml                0.7.1              pyhd3eb1b0_0  
diff-match-patch          20200713           pyhd3eb1b0_0  
distributed               2022.7.0         py39hecd8cb5_0  
docutils                  0.18.1           py39hecd8cb5_3  
ease-grid                 0.2                      pypi_0    pypi
entrypoints               0.4              py39hecd8cb5_0  
et_xmlfile                1.1.0            py39hecd8cb5_0  
executing                 0.8.3              pyhd3eb1b0_0  
expat                     2.4.4                he9d5cce_0  
fastparquet               0.8.1                    pypi_0    pypi
filelock                  3.6.0              pyhd3eb1b0_0  
fiona                     1.8.21           py39haa9df5e_0    conda-forge
flake8                    3.9.2              pyhd3eb1b0_0  
flask                     1.1.2              pyhd3eb1b0_0  
folium                    0.12.1.post1       pyhd8ed1ab_1    conda-forge
fontconfig                2.13.1               ha9ee91d_0  
fonttools                 4.25.0             pyhd3eb1b0_0  
freetype                  2.11.0               hd8bbffd_0  
freexl                    1.0.6                h9ed2024_0  
frozenlist                1.2.0            py39hca72f7f_0  
fsspec                    2022.3.0         py39hecd8cb5_0  
future                    0.18.2           py39hecd8cb5_1  
gdal                      3.4.1            py39h339f5b9_0  
gensim                    4.1.2            py39he9d5cce_0  
geopandas                 0.10.2             pyhd8ed1ab_1    conda-forge
geopandas-base            0.10.2             pyha770c72_1    conda-forge
geos                      3.8.0                hb1e8313_0  
geotiff                   1.7.0                hf77b895_0  
geoviews                  1.9.5                      py_0    pyviz
geoviews-core             1.9.5                      py_0    pyviz
gettext                   0.21.0               h7535e17_0  
giflib                    5.2.1                haf1e3a3_0  
glib                      2.69.1               h8346a28_1  
glob2                     0.7                pyhd3eb1b0_0  
gmp                       6.2.1                he9d5cce_3  
gmpy2                     2.1.2            py39hd5de756_0  
google-api-core           2.2.2              pyhd3eb1b0_0  
google-auth               2.6.0              pyhd3eb1b0_0  
google-cloud-core         2.2.2              pyhd3eb1b0_0  
google-cloud-storage      1.43.0           py39hecd8cb5_0  
google-crc32c             1.1.2            py39h9ed2024_0  
google-resumable-media    1.3.1              pyhd3eb1b0_1  
googleapis-common-protos  1.53.0           py39hecd8cb5_0  
greenlet                  1.1.1            py39h23ab428_0  
grpcio                    1.42.0           py39ha29bfda_0  
h5py                      3.7.0            py39h4a1dd59_0  
hdf4                      4.2.13               h39711bb_2  
hdf5                      1.10.6               hdbbcd12_0  
heapdict                  1.0.1              pyhd3eb1b0_0  
holoviews                 1.15.0           py39hecd8cb5_0  
hvplot                    0.8.0            py39hecd8cb5_0  
hyperlink                 21.0.0             pyhd3eb1b0_0  
icu                       58.2                 h0a44026_3  
idna                      3.3                pyhd3eb1b0_0  
imagecodecs               2021.8.26        py39ha952a84_0  
imageio                   2.19.3           py39hecd8cb5_0  
imagesize                 1.4.1            py39hecd8cb5_0  
importlib-metadata        4.11.3           py39hecd8cb5_0  
importlib_metadata        4.11.3               hd3eb1b0_0  
incremental               21.3.0             pyhd3eb1b0_0  
inflection                0.5.1            py39hecd8cb5_0  
iniconfig                 1.1.1              pyhd3eb1b0_0  
intake                    0.6.5              pyhd3eb1b0_0  
intel-openmp              2021.4.0          hecd8cb5_3538  
intervaltree              3.1.0              pyhd3eb1b0_0  
ipykernel                 6.9.1            py39hecd8cb5_0  
ipython                   8.4.0            py39hecd8cb5_0  
ipython_genutils          0.2.0              pyhd3eb1b0_1  
ipywidgets                7.6.5              pyhd3eb1b0_1  
iris                      3.1.0              pyhd8ed1ab_3    conda-forge
iris-sample-data          2.4.0              pyhd8ed1ab_0    conda-forge
isort                     5.9.3              pyhd3eb1b0_0  
itemadapter               0.3.0              pyhd3eb1b0_0  
itemloaders               1.0.4              pyhd3eb1b0_1  
itsdangerous              2.0.1              pyhd3eb1b0_0  
jdcal                     1.4.1              pyhd3eb1b0_0  
jedi                      0.18.1           py39hecd8cb5_1  
jinja2                    2.11.3             pyhd3eb1b0_0  
jinja2-time               0.2.0              pyhd3eb1b0_3  
jmespath                  0.10.0             pyhd3eb1b0_0  
joblib                    1.1.0              pyhd3eb1b0_0  
jpeg                      9e                   hca72f7f_0  
jq                        1.6               h9ed2024_1000  
json-c                    0.13.1               h3efe00b_0  
json5                     0.9.6              pyhd3eb1b0_0  
jsonschema                4.4.0            py39hecd8cb5_0  
jupyter                   1.0.0            py39hecd8cb5_8  
jupyter_client            6.1.12             pyhd3eb1b0_0  
jupyter_console           6.4.0              pyhd3eb1b0_0  
jupyter_core              4.10.0           py39hecd8cb5_0  
jupyter_server            1.18.1           py39hecd8cb5_0  
jupyterlab                3.4.4            py39hecd8cb5_0  
jupyterlab_pygments       0.1.2                      py_0  
jupyterlab_server         2.10.3             pyhd3eb1b0_1  
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1  
jxrlib                    1.1                  haf1e3a3_2  
kealib                    1.4.14               h7cdcae2_1  
keyring                   23.4.0           py39hecd8cb5_0  
kiwisolver                1.4.2            py39he9d5cce_0  
krb5                      1.19.2               hcd88c3b_0  
lazy-object-proxy         1.6.0            py39h9ed2024_0  
lcms2                     2.12                 hf1fd2bf_0  
lerc                      3.0                  he9d5cce_0  
libaec                    1.0.4                hb1e8313_1  
libarchive                3.4.2                haa3ed63_0  
libboost                  1.73.0              hd4c2dcd_11  
libcrc32c                 1.1.1                hb1e8313_2  
libcurl                   7.84.0               h6dfd666_0  
libcxx                    12.0.0               h2f01273_0  
libdap4                   3.19.1               h3d3e54a_0  
libdeflate                1.8                  h9ed2024_5  
libedit                   3.1.20210910         hca72f7f_0  
libev                     4.33                 h9ed2024_1  
libffi                    3.3                  hb1e8313_2  
libgdal                   3.4.1                h874363e_0  
libgfortran               3.0.1                h93005f0_2  
libiconv                  1.16                 hca72f7f_2  
libidn2                   2.3.2                h9ed2024_0  
libkml                    1.3.0                h952ee91_5  
liblief                   0.11.5               he9d5cce_1  
libllvm11                 11.1.0               h46f1229_1  
libnetcdf                 4.8.1                h24cb85c_1  
libnghttp2                1.46.0               ha29bfda_0  
libpng                    1.6.37               ha441bb4_0  
libpq                     12.9                 h1c9f633_3  
libprotobuf               3.20.1               h8346a28_0  
libsodium                 1.0.18               h1de35cc_0  
libspatialindex           1.9.3                h23ab428_0  
libspatialite             4.3.0a              h268bb56_20  
libssh2                   1.10.0               h0a4fc7d_0  
libtiff                   4.2.0                h87d7836_0  
libunistring              0.9.10               h9ed2024_0  
libwebp                   1.2.2                h56c3ce4_0  
libwebp-base              1.2.2                hca72f7f_0  
libxml2                   2.9.14               hbf8cd5e_0  
libxslt                   1.1.35               h5b33f42_0  
libzip                    1.8.0                h8b0c345_1    conda-forge
libzopfli                 1.0.3                hb1e8313_0  
llvm-openmp               12.0.0               h0dcd299_1  
llvmlite                  0.38.0           py39h8346a28_0  
locket                    1.0.0            py39hecd8cb5_0  
lxml                      4.9.1            py39h65b224f_0  
lz4                       3.1.3            py39h9ed2024_0  
lz4-c                     1.9.3                h23ab428_1  
lzo                       2.10                 haf1e3a3_2  
mapclassify               2.4.3              pyhd3eb1b0_0  
markdown                  3.3.4            py39hecd8cb5_0  
markupsafe                2.0.1            py39h9ed2024_0  
matplotlib                3.5.1            py39hecd8cb5_1  
matplotlib-base           3.5.1            py39hfb0c5b7_1  
matplotlib-inline         0.1.2              pyhd3eb1b0_2  
mccabe                    0.6.1            py39hecd8cb5_1  
mistune                   0.8.4           py39h9ed2024_1000  
mkl                       2021.4.0           hecd8cb5_637  
mkl-service               2.4.0            py39h9ed2024_0  
mkl_fft                   1.3.1            py39h4ab4a9b_0  
mkl_random                1.2.2            py39hb2f4e1b_0  
mock                      4.0.3              pyhd3eb1b0_0  
more-itertools            8.13.0                   pypi_0    pypi
mpc                       1.1.0                h6ef4df4_1  
mpfr                      4.0.2                h9066e36_1  
mpi                       1.0                       mpich  
mpich                     3.3.2                hc856adb_0  
mpmath                    1.2.1            py39hecd8cb5_0  
msgpack-python            1.0.3            py39haf03e11_0  
multidict                 5.2.0            py39hca72f7f_2  
multipledispatch          0.6.0            py39hecd8cb5_0  
munch                     2.5.0              pyhd3eb1b0_0  
munkres                   1.1.4                      py_0  
mypy_extensions           0.4.3            py39hecd8cb5_1  
navigator-updater         0.2.1                    py39_1  
nb_conda_kernels          2.3.1            py39h6e9494a_1    conda-forge
nbclassic                 0.3.5              pyhd3eb1b0_0  
nbclient                  0.5.13           py39hecd8cb5_0  
nbconvert                 6.4.4            py39hecd8cb5_0  
nbformat                  5.3.0            py39hecd8cb5_0  
ncurses                   6.3                  hca72f7f_3  
nest-asyncio              1.5.5            py39hecd8cb5_0  
netcdf4                   1.5.7            py39h4a1dd59_1  
networkx                  2.8.4            py39hecd8cb5_0  
nltk                      3.7                pyhd3eb1b0_0  
nose                      1.3.7           pyhd3eb1b0_1008  
notebook                  6.4.12           py39hecd8cb5_0  
numba                     0.55.2                   pypi_0    pypi
numexpr                   2.8.3            py39h2e5f0a9_0  
numpy                     1.22.0                   pypi_0    pypi
numpydoc                  1.4.0            py39hecd8cb5_0  
olefile                   0.46               pyhd3eb1b0_0  
oniguruma                 6.9.7.1              h9ed2024_0  
openjpeg                  2.4.0                h66ea3da_0  
openpyxl                  3.0.10           py39hca72f7f_0  
openssl                   1.1.1q               hfe4f2af_0    conda-forge
packaging                 21.3               pyhd3eb1b0_0  
pandas                    1.4.3            py39he9d5cce_0  
pandocfilters             1.5.0              pyhd3eb1b0_0  
panel                     0.13.1           py39hecd8cb5_0  
param                     1.12.0             pyhd3eb1b0_0  
parquet                   1.3.1                    pypi_0    pypi
parse                     1.19.0                   pypi_0    pypi
parsel                    1.6.0            py39hecd8cb5_0  
parso                     0.8.3              pyhd3eb1b0_0  
partd                     1.2.0              pyhd3eb1b0_1  
pathlib                   1.0.1              pyhd3eb1b0_1  
pathspec                  0.7.0                      py_0  
patsy                     0.5.2            py39hecd8cb5_1  
pcre                      8.45                 h23ab428_0  
pep8                      1.7.1            py39hecd8cb5_1  
pexpect                   4.8.0              pyhd3eb1b0_3  
pickleshare               0.7.5           pyhd3eb1b0_1003  
pillow                    9.2.0            py39hde71d04_1  
pip                       22.1.2           py39hecd8cb5_0  
pixman                    0.40.0               h9ed2024_1  
pkginfo                   1.8.2              pyhd3eb1b0_0  
plotly                    5.9.0            py39hecd8cb5_0  
pluggy                    1.0.0            py39hecd8cb5_1  
ply                       3.11                     pypi_0    pypi
pooch                     1.6.0                    pypi_0    pypi
poppler                   0.81.0               h031bf0f_2  
poppler-data              0.4.11               hecd8cb5_0  
poyo                      0.5.0              pyhd3eb1b0_0  
proj                      6.2.1                hfd5b9e3_0  
prometheus_client         0.13.1             pyhd3eb1b0_0  
prompt-toolkit            3.0.20             pyhd3eb1b0_0  
prompt_toolkit            3.0.20               hd3eb1b0_0  
protego                   0.1.16                     py_0  
protobuf                  3.20.1           py39he9d5cce_0  
psutil                    5.9.0            py39hca72f7f_0  
ptyprocess                0.7.0              pyhd3eb1b0_2  
pure_eval                 0.2.2              pyhd3eb1b0_0  
py                        1.11.0             pyhd3eb1b0_0  
py-lief                   0.11.5           py39he9d5cce_1  
pyasn1                    0.4.8              pyhd3eb1b0_0  
pyasn1-modules            0.2.8                      py_0  
pycodestyle               2.7.0              pyhd3eb1b0_0  
pycosat                   0.6.3            py39h9ed2024_0  
pycparser                 2.21               pyhd3eb1b0_0  
pyct                      0.4.8            py39hecd8cb5_1  
pycurl                    7.45.1           py39h0a4fc7d_0  
pydispatcher              2.0.5            py39hecd8cb5_2  
pydocstyle                6.1.1              pyhd3eb1b0_0  
pyerfa                    2.0.0            py39h9ed2024_0  
pyflakes                  2.3.1              pyhd3eb1b0_0  
pygeobase                 0.4.0                    pypi_0    pypi
pygeogrids                0.4.1                    pypi_0    pypi
pygments                  2.11.2             pyhd3eb1b0_0  
pyhamcrest                2.0.2              pyhd3eb1b0_2  
pyhdf                     0.10.5                   pypi_0    pypi
pyjwt                     2.4.0            py39hecd8cb5_0  
pykdtree                  1.3.5                    pypi_0    pypi
pylint                    2.9.6            py39hecd8cb5_1  
pyls-spyder               0.4.0              pyhd3eb1b0_0  
pynetcf                   0.2.2                    pypi_0    pypi
pyodbc                    4.0.32           py39he9d5cce_1  
pyopenssl                 22.0.0             pyhd3eb1b0_0  
pyparsing                 3.0.4              pyhd3eb1b0_0  
pyproj                    2.6.1.post1      py39hdfdfadc_1  
pyqt                      5.9.2            py39h23ab428_6  
pyresample                1.24.1                   pypi_0    pypi
pyrsistent                0.18.0           py39hca72f7f_0  
pyshp                     2.1.3              pyhd3eb1b0_0  
pysocks                   1.7.1            py39hecd8cb5_0  
pytables                  3.6.1            py39h648f197_1  
pytesmo                   0.14.0                   pypi_0    pypi
pytest                    7.1.2            py39hecd8cb5_0  
python                    3.9.12               hdfd78df_0  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python-fastjsonschema     2.15.1             pyhd3eb1b0_0  
python-libarchive-c       2.9                pyhd3eb1b0_1  
python-lsp-black          1.0.0              pyhd3eb1b0_0  
python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0  
python-lsp-server         1.2.4              pyhd3eb1b0_0  
python-slugify            5.0.2              pyhd3eb1b0_0  
python-snappy             0.6.0            py39h23ab428_3  
python-xxhash             2.0.2            py39h9ed2024_0  
python.app                3                py39hca72f7f_0  
python_abi                3.9                      2_cp39    conda-forge
pytz                      2022.1           py39hecd8cb5_0  
pyviz_comms               2.0.2              pyhd3eb1b0_0  
pywavelets                1.3.0            py39hca72f7f_0  
pyyaml                    6.0              py39hca72f7f_1  
pyzmq                     23.2.0           py39he9d5cce_0  
qdarkstyle                3.0.2              pyhd3eb1b0_0  
qstylizer                 0.1.10             pyhd3eb1b0_0  
qt                        5.9.7                h468cd18_1  
qtawesome                 1.0.3              pyhd3eb1b0_0  
qtconsole                 5.3.1            py39hecd8cb5_0  
qtpy                      2.0.1              pyhd3eb1b0_0  
queuelib                  1.5.0            py39hecd8cb5_0  
rasterio                  1.3.0                    pypi_0    pypi
readline                  8.1.2                hca72f7f_1  
regex                     2022.7.9         py39hca72f7f_0  
repurpose                 0.8                      pypi_0    pypi
requests                  2.28.1           py39hecd8cb5_0  
requests-file             1.5.1              pyhd3eb1b0_0  
rioxarray                 0.11.1                   pypi_0    pypi
ripgrep                   12.1.1                        0  
rope                      0.22.0             pyhd3eb1b0_0  
rsa                       4.7.2              pyhd3eb1b0_1  
rtree                     0.9.7            py39hecd8cb5_1  
ruamel_yaml               0.15.100         py39h9ed2024_0  
s3transfer                0.6.0            py39hecd8cb5_0  
scikit-image              0.19.2           py39hae1ba45_0  
scikit-learn              1.1.1            py39he9d5cce_0  
scikit-learn-intelex      2021.5.0         py39hecd8cb5_0  
scipy                     1.7.3            py39h8c7af03_0  
scrapy                    2.6.1            py39hecd8cb5_0  
seaborn                   0.11.2             pyhd3eb1b0_0  
send2trash                1.8.0              pyhd3eb1b0_1  
service_identity          18.1.0             pyhd3eb1b0_1  
setuptools                61.2.0           py39hecd8cb5_0  
shapely                   1.7.1            py39h9250791_0  
sip                       4.19.13          py39h23ab428_0  
six                       1.16.0             pyhd3eb1b0_1  
smap-io                   0.4                      pypi_0    pypi
smart_open                5.2.1            py39hecd8cb5_0  
snappy                    1.1.9                he9d5cce_0  
sniffio                   1.2.0            py39hecd8cb5_1  
snowballstemmer           2.2.0              pyhd3eb1b0_0  
snuggs                    1.4.7                    pypi_0    pypi
sortedcollections         2.1.0              pyhd3eb1b0_0  
sortedcontainers          2.4.0              pyhd3eb1b0_0  
soupsieve                 2.3.1              pyhd3eb1b0_0  
sphinx                    5.0.2            py39hecd8cb5_0  
sphinxcontrib-applehelp   1.0.2              pyhd3eb1b0_0  
sphinxcontrib-devhelp     1.0.2              pyhd3eb1b0_0  
sphinxcontrib-htmlhelp    2.0.0              pyhd3eb1b0_0  
sphinxcontrib-jsmath      1.0.1              pyhd3eb1b0_0  
sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0  
sphinxcontrib-serializinghtml 1.1.5              pyhd3eb1b0_0  
spyder                    5.1.5            py39hecd8cb5_1  
spyder-kernels            2.1.3            py39hecd8cb5_0  
sqlalchemy                1.4.39           py39hca72f7f_0  
sqlite                    3.38.5               h707629a_0  
stack_data                0.2.0              pyhd3eb1b0_0  
statsmodels               0.13.2           py39hca72f7f_0  
style                     1.1.0                    pypi_0    pypi
sympy                     1.10.1           py39hecd8cb5_0  
tabulate                  0.8.10           py39hecd8cb5_0  
tbb                       2021.5.0             haf03e11_0  
tbb4py                    2021.5.0         py39haf03e11_0  
tblib                     1.7.0              pyhd3eb1b0_0  
tenacity                  8.0.1            py39hecd8cb5_1  
terminado                 0.13.1           py39hecd8cb5_0  
testpath                  0.6.0            py39hecd8cb5_0  
text-unidecode            1.3                pyhd3eb1b0_0  
textdistance              4.2.1              pyhd3eb1b0_0  
threadpoolctl             2.2.0              pyh0d69192_0  
three-merge               0.1.1              pyhd3eb1b0_0  
thriftpy2                 0.4.14                   pypi_0    pypi
tifffile                  2021.7.2           pyhd3eb1b0_2  
tiledb                    2.2.9                he9a4fb4_0    conda-forge
tinycss                   0.4             pyhd3eb1b0_1002  
tk                        8.6.12               h5d9f67b_0  
tldextract                3.2.0              pyhd3eb1b0_0  
toml                      0.10.2             pyhd3eb1b0_0  
tomli                     2.0.1            py39hecd8cb5_0  
toolz                     0.11.2             pyhd3eb1b0_0  
tornado                   6.1              py39h9ed2024_0  
tqdm                      4.64.0           py39hecd8cb5_0  
traitlets                 5.1.1              pyhd3eb1b0_0  
trollsift                 0.2.1                    pypi_0    pypi
twisted                   22.2.0           py39hca72f7f_0  
typed-ast                 1.4.3            py39h9ed2024_1  
typing-extensions         4.1.1                hd3eb1b0_0  
typing_extensions         4.1.1              pyh06a4308_0  
tzdata                    2022a                hda174b7_0  
udunits2                  2.2.28               h06ef574_0    conda-forge
ujson                     5.4.0            py39he9d5cce_0  
unidecode                 1.2.0              pyhd3eb1b0_0  
unixodbc                  2.3.9                haf1e3a3_0  
update                    0.0.1                    pypi_0    pypi
urllib3                   1.26.11          py39hecd8cb5_0  
w3lib                     1.21.0             pyhd3eb1b0_0  
watchdog                  2.1.6            py39h999c104_0  
wcwidth                   0.2.5              pyhd3eb1b0_0  
webencodings              0.5.1            py39hecd8cb5_1  
websocket-client          0.58.0           py39hecd8cb5_4  
werkzeug                  2.0.3              pyhd3eb1b0_0  
wget                      1.21.3               h6dfd666_0  
wheel                     0.37.1             pyhd3eb1b0_0  
widgetsnbextension        3.5.2            py39hecd8cb5_0  
wrapt                     1.12.1           py39h9ed2024_1  
wurlitzer                 3.0.2            py39hecd8cb5_0  
xarray                    0.20.1             pyhd3eb1b0_1  
xerces-c                  3.2.3                h48eee30_0  
xlrd                      2.0.1              pyhd3eb1b0_0  
xlsxwriter                3.0.3              pyhd3eb1b0_0  
xlwings                   0.24.9           py39hecd8cb5_0  
xxhash                    0.8.0                h9ed2024_3  
xyzservices               2022.4.0           pyhd8ed1ab_0    conda-forge
xz                        5.2.5                hca72f7f_1  
yaml                      0.2.5                haf1e3a3_0  
yapf                      0.31.0             pyhd3eb1b0_0  
yarl                      1.6.3            py39h9ed2024_0  
zeromq                    4.3.4                h23ab428_0  
zfp                       0.5.5                he9d5cce_6  
zict                      2.1.0            py39hecd8cb5_0  
zipp                      3.8.0            py39hecd8cb5_0  
zlib                      1.2.12               h4dc903c_2  
zope                      1.0              py39hecd8cb5_1  
zope.interface            5.4.0            py39h9ed2024_0  
zstd                      1.4.9                h322a384_0  

Thanks @DNZ.

This is a very large environment, if it’s not already the case I would suggest to only have the dependencies that you require, nothing more.

Also I see you have a mix of packages from the defaults channel (those without any channel listed), the conda-forge channel and PyPi. Installing packages with pip install is okay-ish, the rule I’ve set to myself and I probably read somewhere is to stick to installing them last, after all your other conda install. You reduce the risk of encountering install issues with this practice (note reduce and not eliminate). Also depending on how it’s done mixing channels can lead to issues. To install GeoViews, that requires the complex Python geo-stack, a suggestion would be to install everything from one channel. If you need packages that are on conda-forge and not on defaults, then that would be everything from conda-forge.

Given the above, I’d suggest you re-create an environment, listing the dependencies you need and possibly using conda-forge only, with: conda create -n yournewenv -c conda-forge --override-channels python=3.8 geoviews datashader .... --override-channels is used to override the channels configuration you have in your .condarc file, which includes the defaults channel by default (hence its name!).

Thanks @maximlt.

I am delighted to get your reply. I am working on remote sensing with Python and integrating into a huge environment to start the job directly. I will accept the recommendation to create a new environment.