[root@sdw3 tools]# cd influxdb-python
[root@sdw3 influxdb-python]# ll
total 64
-rw-r--r-- 1 root root 9499 Apr 25 21:44 CHANGELOG.md
-rw-r--r-- 1 root root 85 Apr 25 21:44 dev-requirements.txt
drwxr-xr-x 3 root root 52 Apr 25 21:44 docs
drwxr-xr-x 2 root root 199 Apr 25 21:44 examples
drwxr-xr-x 4 root root 233 Apr 25 21:44 influxdb
-rw-r--r-- 1 root root 1075 Apr 25 21:44 LICENSE
-rw-r--r-- 1 root root 119 Apr 25 21:44 MANIFEST.in
-rw-r--r-- 1 root root 192 Apr 25 21:44 mypy.ini
-rw-r--r-- 1 root root 5107 Apr 25 21:44 README.rst
-rwxr-xr-x 1 root root 75 Apr 25 21:44 release.sh
-rw-r--r-- 1 root root 65 Apr 25 21:44 requirements.txt
-rw-r--r-- 1 root root 60 Apr 25 21:44 setup.cfg
-rwxr-xr-x 1 root root 1705 Apr 25 21:44 setup.py
-rw-r--r-- 1 root root 33 Apr 25 21:44 test-requirements.txt
-rwxr-xr-x 1 root root 115 Apr 25 21:44 test.sh
-rw-r--r-- 1 root root 1680 Apr 25 21:44 tox.ini
[root@sdw3 influxdb-python]# pip3 install -r requirements.txt
Collecting python-dateutil>=2.6.0
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pytz
Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
|████████████████████████████████| 510 kB 14 kB/s
Collecting requests>=2.17.0
Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 21 kB/s
Collecting six>=1.10.0
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting msgpack
Downloading msgpack-1.0.2-cp39-cp39-manylinux1_x86_64.whl (294 kB)
|████████████████████████████████| 294 kB 25 kB/s
Collecting idna<3,>=2.5
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 13 kB/s
Collecting chardet<5,>=3.0.2
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
|████████████████████████████████| 178 kB 17 kB/s
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
|████████████████████████████████| 153 kB 10 kB/s
Collecting certifi>=2017.4.17
Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
|████████████████████████████████| 147 kB 10 kB/s
Installing collected packages: six, python-dateutil, pytz, idna, chardet, urllib3, certifi, requests, msgpack
Successfully installed certifi-2020.12.5 chardet-4.0.0 idna-2.10 msgpack-1.0.2 python-dateutil-2.8.1 pytz-2021.1 requests-2.25.1 six-1.15.0 urllib3-1.26.4
WARNING: You are using pip version 20.2.3; however, version 21.1 is available.
You should consider upgrading via the '/usr/local/python3/bin/python3.9 -m pip install --upgrade pip' command.
[root@sdw3 influxdb-python]#
[root@sdw3 influxdb-python-5.3.0]# pip3 install --upgrade pip
Collecting pip
Downloading pip-21.1-py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 29 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-21.1
[root@sdw3 influxdb-python-5.3.0]#
[root@sdw3 influxdb-python]# pip3 install -r requirements.txt
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /usr/local/python3/include/python3.9/UNKNOWN
sysconfig: /usr/local/python3/include/python3.9
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Requirement already satisfied: python-dateutil>=2.6.0 in /usr/local/python3/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (2.8.1)
Requirement already satisfied: pytz in /usr/local/python3/lib/python3.9/site-packages (from -r requirements.txt (line 2)) (2021.1)
Requirement already satisfied: requests>=2.17.0 in /usr/local/python3/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (2.25.1)
Requirement already satisfied: six>=1.10.0 in /usr/local/python3/lib/python3.9/site-packages (from -r requirements.txt (line 4)) (1.15.0)
Requirement already satisfied: msgpack in /usr/local/python3/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (1.0.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/python3/lib/python3.9/site-packages (from requests>=2.17.0->-r requirements.txt (line 3)) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/python3/lib/python3.9/site-packages (from requests>=2.17.0->-r requirements.txt (line 3)) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/python3/lib/python3.9/site-packages (from requests>=2.17.0->-r requirements.txt (line 3)) (1.26.4)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/python3/lib/python3.9/site-packages (from requests>=2.17.0->-r requirements.txt (line 3)) (4.0.0)
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /usr/local/python3/include/python3.9/UNKNOWN
sysconfig: /usr/local/python3/include/python3.9
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
[root@sdw3 influxdb-python]# python3 setup.py install
Traceback (most recent call last):
File "/tools/influxdb-python/setup.py", line 40, in <module>
packages=find_packages(exclude=['tests']),
NameError: name 'find_packages' is not defined
[root@sdw3 influxdb-python]# pip3 install influxdb
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /usr/local/python3/include/python3.9/UNKNOWN
sysconfig: /usr/local/python3/include/python3.9
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Collecting influxdb
Using cached influxdb-5.3.1-py2.py3-none-any.whl (77 kB)
Requirement already satisfied: six>=1.10.0 in /usr/local/python3/lib/python3.9/site-packages (from influxdb) (1.15.0)
Requirement already satisfied: pytz in /usr/local/python3/lib/python3.9/site-packages (from influxdb) (2021.1)
Requirement already satisfied: msgpack in /usr/local/python3/lib/python3.9/site-packages (from influxdb) (1.0.2)
Requirement already satisfied: python-dateutil>=2.6.0 in /usr/local/python3/lib/python3.9/site-packages (from influxdb) (2.8.1)
Requirement already satisfied: requests>=2.17.0 in /usr/local/python3/lib/python3.9/site-packages (from influxdb) (2.25.1)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/python3/lib/python3.9/site-packages (from requests>=2.17.0->influxdb) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/python3/lib/python3.9/site-packages (from requests>=2.17.0->influxdb) (1.26.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/python3/lib/python3.9/site-packages (from requests>=2.17.0->influxdb) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/python3/lib/python3.9/site-packages (from requests>=2.17.0->influxdb) (4.0.0)
Installing collected packages: influxdb
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /usr/local/python3/include/python3.9/UNKNOWN
sysconfig: /usr/local/python3/include/python3.9
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Successfully installed influxdb-5.3.1
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
[root@sdw3 influxdb-python]# python3
Python 3.9.4 (default, Apr 25 2021, 21:31:22)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from influxdb import InfluxDBClient
>>>
>>> from influxdb import client as influxdb
>>>
>>>