See doc/source/install.rst
or
http://networkx.lanl.gov/install.html 
