See doc/source/install.rst
or
http://networkx.github.io/documentation/latest/install.html
