https://www.liquidweb.com/kb/how-to-install-pip-on-centos-7/
Pip is a tool for installing and managing Python packages.
Python is a programming language. It is quite popular and has a design philosophy that emphasizes code readability. It is widely considered to be a very easy programming language to learn and master because of its focus on readability. Python is open source,and will run a a multitude of platforms including,but not limited to: VarIoUs Linux/UNIX distributions (CentOS,Ubuntu,Fedora,Debian,etc.),Microsoft Windows,and Mac OS X.
- These instructions are intended specifically for installing Pip,a tool for installing and managing Python packages.
- I’ll be working from a Liquid Web Core Managed CentOS 7 server,and I’ll be logged in as root.
There are two options for installing Pip. Use either Option #1 or Option #2 below.
Pip is part of Extra Packages for Enterprise Linux (EPEL),which is a community repository of non-standard packages for the RHEL distribution. First,we’ll install the EPEL repository:
rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum -y update
Then let’s install python-pip and any required packages:
yum -y install python-pip
And skip toStep #3.
We can also use curl and python to download and install Pip.
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
View a list of helpful commands:
pip --help
Check the version of Pip that is installed:
pip -V
Which should yield something similar to:
pip 1.3.1 from /usr/lib/python2.7/site-packages (python 2.7)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。