Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install setuptools in mac

I'm trying to install via pip some libraries but I'm having some problems.

When I try to install some of them I require for my project I get this message:

$ sudo pip install dj-database-url==0.2.0
Downloading/unpacking dj-database-url==0.2.0
  Downloading dj-database-url-0.2.0.tar.gz
Cleaning up...
setuptools must be installed to install from a source distribution

It also happens when trying to install distribute==0.6.24

Any ideas?

like image 925
Sascuash Avatar asked Sep 25 '14 07:09

Sascuash


1 Answers

  1. Download ez_setup.py module from https://pypi.python.org/pypi/setuptools
  2. Open a Terminal.
  3. cd to the directory where you put the ez_setup.py.
  4. Type python ez_setup.py and run it.
  5. You should have it then.
like image 111
Lingchao Cao Avatar answered Oct 02 '22 05:10

Lingchao Cao