+2 votes
in Operating Systems by (71.8k points)
How can I install the NetworkX and easy_install package for python in Ubuntu?

1 Answer

+1 vote
by (71.8k points)
selected by
 
Best answer

Open your terminal using ALT+CTRL+T and then type the following commands...

- sudo apt-get install python-setuptools

- easy_install networkx

However pip is preferred to easy_install. So install pip using the following command...

sudo apt-get install python-pip 
and then to install any package, type the following command,
sudo pip install <pip-package>
e.g. to install networkx, type 
sudo pip install networkx

 


...