Install the most recent stable release of networkx with pip:
pip install networkx
To upgrade to a newer release, use the
pip install --upgrade networkx
If you do not have the right permissions to install software systemwide, you can install NetworkX into your user directory using the
pip install --user networkx
pip install .
NetworkX is currently available through the Anaconda distribution platform. Miniconda doesn't come with NetworkX by default.
You can install the latest version of NetworkX with:
conda install networkx
If you want to update your current version of NetworkX then run:
conda update networkx