I am workikng with Python/Django web application, in Amazon EC2 / Debian series operating system.

Application has Python setuptools library as dependency. So I installed setup this lib by this command globally:

> 
> sudo apt-get install setuptools
> 
> 
> 

But this didn't work - application says dependency didn't resolved correctly. After some googling, I have found solution, like this:

> 
> pip install setuptools.
> 
> 
> 

This worked for me.

But I have a question - what's difference between these two? Of course, I didn't activated virtualenv, so it seems setuptools is installed globally.

Would you like to bring me your experience? Please help me.