Install python-pip and networkx packages in centos
1. Install python-pip
(1) install setuptools
Because setuptools is required for Python-pip installation, you must first install:
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
(2) download python-pip because centos does not support direct yum install to install python-pip, you need to download it before installation. Download as follows:
wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
(3) install python-pip, decompress it, enter the directory, and install:
Tar zvxf 1.5.5.tar.gz # decompress the file cd pip-1.5.5/python setup. py install
Installed successfully!
2. Use pip to install networkx
Before installing networkx, install the matrix Processing Package numpy and the graphic drawing package matplotlib. The installation command is as follows:
pip install numpypip install matplotlibpip install networkx
Installed successfully!
Reference: http://www.tuicool.com/articles/IJvq 2m3