Installing Python NetworkX module on Ubuntu

Hi, in this post I would like to sharing an information, how to installing networkx module phyton on Ubuntu. Based on its documentation

” NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks ”

Please refer to know more about last stable version and features.

Basically phyton supposed to be installed in your PC once you have finished installing Ubuntu, to ensure whether your python has installed correctly or not, you can check by the following command :

muhammad@muhammad-laptop:~$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Python version will appear if your installation is correct. Now its time to installing Networkx.

muhammad@muhammad-laptop:~$ sudo pip install networkx

And do not forget to installing python-matplotlib also as the complement module to help networkx showing graph in GUI mode.

muhammad@muhammad-laptop:~$ sudo apt-get install python-matplotlib

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>