Python install on CentOS
Pre Requsites
1. Check that the machine or VM running CentOS has ip address and internet connectivity
2. yum works - run sudo yum update -y
3. if ifconfig - command not found, then sudo yum -y install net-tools
Install pip with Curl and Python
1. sudo curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
2. sudo python get-pip.py
Verify pip installation
pip --help
Verify Python installation
python
Python 2.7.5 (default, Nov 20 2015, 02:00:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
1. Check that the machine or VM running CentOS has ip address and internet connectivity
2. yum works - run sudo yum update -y
3. if ifconfig - command not found, then sudo yum -y install net-tools
Install pip with Curl and Python
1. sudo curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
2. sudo python get-pip.py
Verify pip installation
pip --help
Verify Python installation
python
Python 2.7.5 (default, Nov 20 2015, 02:00:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Comments
Post a Comment