Install curator problem


I tried to install elastic curator 4.2.6 on my ec2, but after typing < pip install elasticsearch-curator >, it showed the error like below:

Collecting elasticsearch-curator
Using cached elasticsearch-curator-4.2.6.tar.gz
Collecting elasticsearch<3.0.0,>=2.4.0 (from elasticsearch-curator)
Using cached elasticsearch-2.4.1-py2.py3-none-any.whl
Collecting click>=6.0 (from elasticsearch-curator)
Using cached click-6.7-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pyyaml>=3.10 in /usr/lib64/python2.7/dist-packages (from el asticsearch-curator)
Collecting voluptuous>=0.9.3 (from elasticsearch-curator)
Using cached voluptuous-0.9.3.tar.gz
Collecting certifi>=2017.1.23 (from elasticsearch-curator)
Using cached certifi-2017.1.23-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): urllib3<2.0,>=1.8 in /usr/lib/python2.7/dist-packages (from elasticsearch<3.0.0,>=2.4.0->elasticsearch-curator)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.6b1 in /usr/lib/python2.7/dist-packages (from voluptuous>=0.9.3->elasticsearch-curator)
Installing collected packages: elasticsearch, click, voluptuous, certifi, elasticsearch-curator
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/", line 246, in main
status =, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/", line 352, in run
File "/usr/lib/python2.7/dist-packages/pip/req/", line 693, in install
File "/usr/lib/python2.7/dist-packages/pip/req/", line 817, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req/", line 1018, in move_wheel_files
File "/usr/lib/python2.7/dist-packages/pip/", line 237, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/", line 208, in clobber
File "/usr/lib64/python2.7/", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/elasticsearch-2.4.1.dist-info'

Please help me if you have any ideas, thanks so much.


The Permission denied explains much. You will probably have to run it as root or with sudo.

Thanks man, I forgot to use sudo...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.