ImportError: cannot import name 'influxdb_client' from 'influxdb'

I am a novice and need some help with an import error.

Python 3.9.6 (v3.9.6:db3ff76da1, Jun 28 2021, 11:49:53) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from influxdb import influxdb_client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'influxdb_client' from 'influxdb' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/influxdb/

Why not use the example code?

from influxdb import InfluxDBClient

PS: Be aware, that there are two different InfluxDB Client Libraries, one for 1.x and one for 2.x

Thanks - that works and is that 1.x or 2.x?

If you are working with InfluxDBv1 I would use the Python client V1 and if you are working with InfluxDBv2 the V2 client. Here you can find the two clients:

V1.0 : GitHub - influxdata/influxdb-python: Python client for InfluxDB

V2.0 : GitHub - influxdata/influxdb-client-python: InfluxDB 2.0 python client