Unable to run setup_seafile during installation


I am installing seafile on redhat. During installation I am unable to run setup-seafile-mysql.sh script. its shows the following message:

Checking python on this machine …
Checking python module: setuptools …
setuptools is not installed, Please install it first.

On Debian/Ubntu: apt-get install python-setuptools
On CentOS/RHEL: yum install python-distribute

Error occured during setup.
Please fix possible problems and run the script again.

though the system has already installed the setup tools. Can anybody help me to solve the issue?

What is the python version of your server? Seafile script would use try to locate python2.7 and python2 in your PATH.

Also you can try to run this command:

python -c "import pkg_resources"

To see if your setuptools are installed correctly.

I am using python2.7. after run your suggested command then the following message comes up.

Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named pkg_resources