What environment about python in https://hvplot.holoviz.org/

I use python 3.6. Practice https://hvplot.holoviz.org/ example, there are so many errors. Such as
···
~/anaconda3/envs/hai/lib/python3.6/site-packages/hvplot/converter.py in _get_element(self, kind)
1840 if self.geo:
1841 import geoviews
→ 1842 element = getattr(geoviews, element.name)
1843 return element
1844

AttributeError: module ‘geoviews’ has no attribute ‘QuadMesh’
···
I think my python version 3.6 is not exact as https://hvplot.holoviz.org/.

pip install -U geoviews holoviews hvplot

(hai) hengaini2055@u2004h:~$ conda list
# packages in environment at /home/hengaini2055/anaconda3/envs/hai:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main
_openmp_mutex             4.5                       1_gnu
abseil-cpp                20210324.2           h2531618_0
aiohttp                   3.7.4            py36h27cfd23_1
anyio                     2.2.0            py36h06a4308_1
anytree                   2.8.0                    pypi_0    pypi
apache-beam               2.31.0                   pypi_0    pypi
appdirs                   1.4.4                    pypi_0    pypi
argon2-cffi               20.1.0           py36h27cfd23_1
arrow-cpp                 5.0.0           py36h5174070_1_cpu    conda-forge
asciitree                 0.3.3                    pypi_0    pypi
async-timeout             3.0.1            py36h06a4308_0
async_generator           1.10             py36h28b3542_0
attrs                     21.2.0             pyhd3eb1b0_0
avro-python3              1.9.2.1                  pypi_0    pypi
aws-c-cal                 0.5.11               h95a6274_0    conda-forge
aws-c-common              0.6.2                h7f98852_0    conda-forge
aws-c-event-stream        0.2.7               h3541f99_13    conda-forge
aws-c-io                  0.10.5               hfb6a706_0    conda-forge
aws-checksums             0.1.11               ha31a3da_7    conda-forge
aws-sdk-cpp               1.8.186              hb4091e7_3    conda-forge
babel                     2.9.1              pyhd3eb1b0_0
backcall                  0.2.0              pyhd3eb1b0_0
bcj-cffi                  0.5.1            py36hc4f0c31_0    conda-forge
blas                      1.0                    openblas
bleach                    4.0.0              pyhd3eb1b0_0
bokeh                     2.3.2            py36h06a4308_0
brotli-python             1.0.9            py36heb0550a_2
brotlicffi                1.0.9.2          py36hc4f0c31_0    conda-forge
brotlipy                  0.7.0           py36h27cfd23_1003
bzip2                     1.0.8                h7b6447c_0
c-ares                    1.17.1               h27cfd23_0
ca-certificates           2021.7.5             h06a4308_1
cachetools                4.2.2                    pypi_0    pypi
cartopy                   0.18.0           py36h0d9ca2b_1
certifi                   2021.5.30        py36h06a4308_0
cffi                      1.14.6           py36h400218f_0
cftime                    1.5.0                    pypi_0    pypi
chardet                   3.0.4           py36h06a4308_1003
click                     8.0.1              pyhd3eb1b0_0
cloudpickle               1.6.0                      py_0
colorama                  0.4.4                    pypi_0    pypi
colorcet                  2.0.6              pyhd3eb1b0_0
conllu                    4.4                pyhd8ed1ab_0    conda-forge
contextvars               2.4                        py_0
crcmod                    1.7                      pypi_0    pypi
cryptography              3.4.7            py36hd23ed53_0
cycler                    0.10.0                   py36_0
cytoolz                   0.11.0           py36h7b6447c_0
dask                      2021.3.0           pyhd3eb1b0_0
dask-core                 2021.3.0           pyhd3eb1b0_0
dataclasses               0.8                pyh4f3eec9_6
datasets                  1.11.0             pyhd8ed1ab_0    conda-forge
datashader                0.13.0                     py_0    pyviz
datashape                 0.5.4            py36h06a4308_1
dbus                      1.13.18              hb2f20db_0
decorator                 4.4.2                    pypi_0    pypi
defusedxml                0.7.1              pyhd3eb1b0_0
dill                      0.3.1.1                  pypi_0    pypi
distlib                   0.3.2                    pypi_0    pypi
distributed               2021.3.0         py36h06a4308_0
docopt                    0.6.2                    pypi_0    pypi
entrypoints               0.3                      py36_0
et_xmlfile                1.1.0            py36h06a4308_0
expat                     2.4.1                h2531618_2
fastavro                  1.4.4                    pypi_0    pypi
fasteners                 0.16.3                   pypi_0    pypi
fastparquet               0.5.0            py36h6323ea4_1
filelock                  3.0.12             pyhd3eb1b0_1
fontconfig                2.13.1               h6c09931_0
freetype                  2.10.4               h5ab3b9f_0
fsspec                    2021.7.0           pyhd3eb1b0_0
future                    0.18.2                   pypi_0    pypi
geos                      3.8.0                he6710b0_0
geoviews                  1.9.1                    pypi_0    pypi
gflags                    2.2.2                he6710b0_0
glib                      2.69.0               h5202010_0
glog                      0.5.0                h2531618_0
gmp                       6.2.1                h2531618_2
grpc-cpp                  1.39.0               h36ce80c_1    conda-forge
grpcio                    1.39.0                   pypi_0    pypi
gst-plugins-base          1.14.0               h8213a91_2
gstreamer                 1.14.0               h28cd5cc_2
hdfs                      2.6.0                    pypi_0    pypi
heapdict                  1.0.1                      py_0
holoviews                 1.14.5             pyhd3eb1b0_1
httplib2                  0.19.1                   pypi_0    pypi
huggingface-hub           0.0.15                   pypi_0    pypi
hvplot                    0.7.3              pyh6c4a22f_0    conda-forge
icu                       58.2                 he6710b0_3
idna                      2.10               pyhd3eb1b0_0
idna_ssl                  1.1.0            py36h06a4308_0
immutables                0.16             py36h7f8727e_0
importlib-metadata        3.10.0           py36h06a4308_0
importlib_metadata        3.10.0               hd3eb1b0_0
intake                    0.6.1                    pypi_0    pypi
intake-parquet            0.2.3                    pypi_0    pypi
intake-xarray             0.5.0                    pypi_0    pypi
ipykernel                 5.3.4            py36h5ca1d4c_0
ipython                   7.16.1           py36h5ca1d4c_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                7.6.3              pyhd3eb1b0_1
jbig                      2.1                  hdba287a_0
jdcal                     1.4.1                      py_0
jedi                      0.17.0                   py36_0
jinja2                    3.0.1              pyhd3eb1b0_0
johnnydep                 1.8                      pypi_0    pypi
jpeg                      9d                   h36c2ea0_0    conda-forge
json5                     0.9.6              pyhd3eb1b0_0
jsonschema                3.2.0                      py_2
jupyter                   1.0.0                    py36_7
jupyter-packaging         0.7.12             pyhd3eb1b0_0
jupyter_bokeh             2.0.4                      py_0    bokeh
jupyter_client            6.1.12             pyhd3eb1b0_0
jupyter_console           6.4.0              pyhd3eb1b0_0
jupyter_core              4.7.1            py36h06a4308_0
jupyter_server            1.4.1            py36h06a4308_0
jupyterlab                3.0.14             pyhd3eb1b0_1
jupyterlab_pygments       0.1.2                      py_0
jupyterlab_server         2.7.1              pyhd3eb1b0_0
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1
kiwisolver                1.3.1            py36h2531618_0
krb5                      1.19.2               hac12032_0
lcms2                     2.12                 h3be6417_0
ld_impl_linux-64          2.35.1               h7274673_9
lerc                      2.2.1                h2531618_0
libbrotlicommon           1.0.9                h7f98852_5    conda-forge
libbrotlidec              1.0.9                h7f98852_5    conda-forge
libbrotlienc              1.0.9                h7f98852_5    conda-forge
libcurl                   7.78.0               h0b77cf5_0
libdeflate                1.7                  h27cfd23_5
libedit                   3.1.20210216         h27cfd23_1
libev                     4.33                 h7b6447c_0
libevent                  2.1.10               hcdb4288_3    conda-forge
libffi                    3.3                  he6710b0_2
libgcc-ng                 9.3.0               h5101ec6_17
libgfortran-ng            7.5.0               ha8ba4b0_17
libgfortran4              7.5.0               ha8ba4b0_17
libgomp                   9.3.0               h5101ec6_17
libllvm10                 10.0.1               hbcb73fb_5
libnghttp2                1.41.0               hf8bcb03_2
libopenblas               0.3.13               h4367d64_0
libpng                    1.6.37               hbc83047_0
libprotobuf               3.16.0               h780b84a_0    conda-forge
libsodium                 1.0.18               h7b6447c_0
libssh2                   1.9.0                h1ba5d50_1
libstdcxx-ng              9.3.0               hd4cf53a_17
libthrift                 0.14.2               he6d91bd_1    conda-forge
libtiff                   4.3.0                hf544144_1    conda-forge
libutf8proc               2.6.1                h27cfd23_0
libuuid                   1.0.3                h1bed415_2
libwebp-base              1.2.0                h27cfd23_0
libxcb                    1.14                 h7b6447c_0
libxml2                   2.9.12               h03d6c58_0
libxslt                   1.1.34               hc22bd24_0
llvmlite                  0.36.0           py36h612dafd_4
local-structure           0.1.0                     dev_0    <develop>
locket                    0.2.1                    pypi_0    pypi
lxml                      4.6.3            py36h9120a33_0
lz4-c                     1.9.3                h295c915_1
markdown                  3.3.4            py36h06a4308_0
markupsafe                2.0.1            py36h27cfd23_0
matplotlib                3.2.2                         1    conda-forge
matplotlib-base           3.2.2            py36hef1b27d_0
mistune                   0.8.4            py36h7b6447c_0
msgpack-python            1.0.2            py36hff7bd54_1
multidict                 5.1.0            py36h27cfd23_2
multipledispatch          0.6.0                    py36_0
multiprocess              0.70.12.2        py36h8f6f2f9_0    conda-forge
multivolumefile           0.2.3              pyhd8ed1ab_0    conda-forge
nbclassic                 0.2.6              pyhd3eb1b0_0
nbclient                  0.5.3              pyhd3eb1b0_0
nbconvert                 6.0.7                    py36_0
nbformat                  5.1.3              pyhd3eb1b0_0
ncurses                   6.2                  he6710b0_1
nest-asyncio              1.5.1              pyhd3eb1b0_0
netcdf4                   1.5.7                    pypi_0    pypi
networkx                  2.5.1                    pypi_0    pypi
nlp                       0.4.0              pyh9f0ad1d_0    conda-forge
notebook                  6.4.3            py36h06a4308_0
numba                     0.53.1           py36ha9443f7_0
numcodecs                 0.9.0                    pypi_0    pypi
numpy                     1.17.0           py36h99e49ec_0
numpy-base                1.17.0           py36h2f8d375_0
oauth2client              4.1.3                    pypi_0    pypi
olefile                   0.46                     py36_0
openjpeg                  2.3.0                h05c96fa_1
openpyxl                  3.0.7              pyhd3eb1b0_0
openssl                   1.1.1k               h27cfd23_0
orc                       1.6.9                h58a87f1_0    conda-forge
oyaml                     1.0                      pypi_0    pypi
packaging                 21.0               pyhd3eb1b0_0
pandas                    1.1.5                    pypi_0    pypi
pandoc                    2.12                 h06a4308_0
pandocfilters             1.4.3            py36h06a4308_1
panel                     0.12.0                     py_0    pyviz
param                     1.11.1             pyhd3eb1b0_0
parquet                   1.3.1                    pypi_0    pypi
parquet-cpp               1.5.1                         2    conda-forge
parso                     0.8.2              pyhd3eb1b0_0
partd                     1.2.0              pyhd3eb1b0_0
pcre                      8.45                 h295c915_0
pexpect                   4.8.0              pyhd3eb1b0_3
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    8.3.1            py36h2c7a002_0
pip                       21.1.3           py36h06a4308_0
pkginfo                   1.7.1                    pypi_0    pypi
ply                       3.11                     pypi_0    pypi
pooch                     1.4.0                    pypi_0    pypi
proj                      6.2.1                haa6030c_0
prometheus_client         0.11.0             pyhd3eb1b0_0
prompt-toolkit            3.0.17             pyh06a4308_0
prompt_toolkit            3.0.17               hd3eb1b0_0
protobuf                  3.17.3                   pypi_0    pypi
psutil                    5.8.0            py36h27cfd23_1
ptyprocess                0.7.0              pyhd3eb1b0_2
py7zr                     0.16.1             pyhd8ed1ab_1    conda-forge
pyarrow                   4.0.1                    pypi_0    pypi
pyasn1                    0.4.8                    pypi_0    pypi
pyasn1-modules            0.2.8                    pypi_0    pypi
pycparser                 2.20                       py_2
pycryptodomex             3.10.1           py36h27cfd23_1
pyct                      0.4.8                    py36_0
pydot                     1.4.2                    pypi_0    pypi
pygments                  2.9.0              pyhd3eb1b0_0
pymongo                   3.12.0                   pypi_0    pypi
pyopenssl                 20.0.1             pyhd3eb1b0_1
pyparsing                 2.4.7              pyhd3eb1b0_0
pyppmd                    0.15.2           py36hc4f0c31_0    conda-forge
pyproj                    3.0.1                    pypi_0    pypi
pyqt                      5.9.2            py36h05f1152_2
pyrsistent                0.17.3           py36h7b6447c_0
pyshp                     2.1.3              pyhd3eb1b0_0
pysocks                   1.7.1            py36h06a4308_0
python                    3.6.13               h12debd9_1
python-dateutil           2.8.2              pyhd3eb1b0_0
python-xxhash             2.0.2            py36h8f6f2f9_0    conda-forge
python_abi                3.6                     2_cp36m    conda-forge
pytz                      2021.1             pyhd3eb1b0_0
pyviz_comms               2.0.2              pyhd3eb1b0_0
pyxll                     5.2.2                    pypi_0    pypi
pyyaml                    5.4.1            py36h27cfd23_1
pyzmq                     22.2.1           py36h295c915_1
pyzstd                    0.14.4           py36h707e034_2    conda-forge
qt                        5.9.7                h5867ecd_1
qtconsole                 5.1.0              pyhd3eb1b0_0
qtpy                      1.9.0                      py_0
re2                       2021.06.01           h9c3ff4c_0    conda-forge
readline                  8.1                  h27cfd23_0
requests                  2.25.1             pyhd3eb1b0_0
rsa                       4.7.2                    pypi_0    pypi
s2n                       1.0.10               h9b69904_0    conda-forge
scipy                     1.5.2            py36habc2bb6_0
send2trash                1.5.0              pyhd3eb1b0_1
setuptools                52.0.0           py36h06a4308_0
shapely                   1.7.1            py36h98ec03d_0
sip                       4.19.8           py36hf484d3e_0
six                       1.16.0             pyhd3eb1b0_0
snappy                    1.1.8                he6710b0_0
sniffio                   1.2.0            py36h06a4308_1
sortedcontainers          2.4.0              pyhd3eb1b0_0
sqlite                    3.36.0               hc218d9a_0
streamz                   0.6.2                    pypi_0    pypi
structlog                 21.1.0                   pypi_0    pypi
tabulate                  0.8.9                    pypi_0    pypi
tbb                       2020.3               hfd86e86_0
tblib                     1.7.0                      py_0
terminado                 0.9.4            py36h06a4308_0
testpath                  0.5.0              pyhd3eb1b0_0
texttable                 1.6.4              pyhd8ed1ab_0    conda-forge
thrift                    0.11.0           py36hf484d3e_0
thriftpy2                 0.4.14                   pypi_0    pypi
tk                        8.6.10               hbc83047_0
toml                      0.10.2                   pypi_0    pypi
toolz                     0.11.1             pyhd3eb1b0_0
tornado                   6.1              py36h27cfd23_0
tqdm                      4.62.1                   pypi_0    pypi
traitlets                 4.3.3                    py36_0
typing-extensions         3.7.4.3                  pypi_0    pypi
urllib3                   1.26.6             pyhd3eb1b0_1
wcwidth                   0.2.5                      py_0
webencodings              0.5.1                    py36_1
wheel                     0.37.0             pyhd3eb1b0_0
widgetsnbextension        3.5.1                    py36_0
wimpy                     0.6                      pypi_0    pypi
xarray                    0.18.0             pyhd3eb1b0_0
xxhash                    0.8.0                h7f98852_3    conda-forge
xz                        5.2.5                h7b6447c_0
yaml                      0.2.5                h7b6447c_0
yarl                      1.6.3            py36h27cfd23_0
zarr                      2.8.3                    pypi_0    pypi
zeromq                    4.3.4                h2531618_0
zict                      2.0.0              pyhd3eb1b0_0
zipp                      3.5.0              pyhd3eb1b0_0
zlib                      1.2.11               h7b6447c_3
zstd                      1.5.0                ha95c52a_0    conda-forge

I have installed all library. Do I need python 3.8 instead of 3.6?

Hi @hengaini2055

Welcome to the community. In order for the community to be able to easily help you could you please be more specific.

  1. List your version of relevant libraries only, i.e. geoviews, holoviews and hvplot.
  2. Provide a reference (screenshot, url or similar) to the exact line of code in the tutorial where things break down or
  3. Provide a minimum reproducible example that breaks down.

Without the above it can only be guess work from our side when we try to help. And we want to help :+1:

Thanks.

Thanks @Marc! I reboot my jupyter lab server in my ubuntu conda env, and everything is ok!
I couldn’t understand the default version of a library in python 3.6. When I pip install libraryName in different python version such 3.6, 3.7 or 3.8, how do pip choose a specific version?

1 Like

Great you made it @hengaini2055. My understanding is that pip installs the latest version unless otherwise specified. For some package it also might have to select between wheels for different operating systems etc.