一、Linux下安装
1.yum install -y git
2.安装pip,参考:
https://app.yinxiang.com/shard/s41/sh/0338ba85-5443-453f-b8c1-349a70377e73/7b712e4a6718279862eae0b71de43697
3.
git clone https://github.com/influxdb/influxdb-python.git cd influxdb-python pip install -r requirements.txt python setup.py install
4.打开python
输入
from influxdb import client as influxdb如果没有错误信息,则表示安装成功
二、windows下安装
1.安装requests
命令行:python setup.py install
2.安装influxdb-python
命令行:python setup.py install
附件:
https://app.yinxiang.com/shard/s41/res/ad265528-5b41-4aa0-a430-4669aa43a961/requests-2.5.0.tar.gz
https://app.yinxiang.com/shard/s41/res/b20586f4-c996-435f-bf20-333b3f7c74c3/influxdb-python-master.zip