yum install python-setuptools -y
tar -zxvf backports.csv-1.0.7.tar.gz
cd backports.csv-1.0.7
python setup.py install
cd ..
tar -zxvf setuptools_scm-1.9.0.tar.gz
cd setuptools_scm-1.9.0
python setup.py install
cd ..
tar -zxvf pytest-runner-2.8.tar.gz
cd pytest-runner-2.8
python setup.py install
cd ..
tar -zxvf six-1.15.0.tar.gz
cd six-1.15.0
python setup.py install
cd ..
tar -zxvf python-utils-2.5.6.tar.gz
cd python-utils-2.5.6
python setup.py install
cd ..
tar -zxvf progressbar2-3.36.0.tar.gz
cd progressbar2-3.36.0
python setup.py install
cd ..
unzip setuptools-42.0.2.zip
cd setuptools-42.0.2
python setup.py install
#cd ..
#tar -zxvf urllib3-1.26.4.tar.gz
#cd urllib3-1.26.4
#python setup.py install
tar -zxvf urllib3-1.21.1.tar.gz
cd urllib3-1.21.1
python setup.py install
cd ..
tar -zxvf elasticsearch-5.5.3.tar.gz
cd elasticsearch-5.5.3
python setup.py install
cd ..
tar -zxvf es2csv-5.5.2.tar.gz
cd es2csv-5.5.2
修改es2csv.py的212行为如下内容:
csv_writer = csv.DictWriter(output_file, fieldnames=self.csv_headers, delimiter=unicode(self.opts.delimiter))
使分隔符设置生效
python setup.py install