首先,centos 7.0 已經有內建python
python --version 查詢自己的版本
再來是安裝pip
pip是python 的套件管理工具,集合了下載、安裝、管理、移除套件等功能
開始安裝吧
su - 切換至系統管理員
https://www.liquidweb.com/kb/how-to-install-pip-on-centos-7/
從這個網站知道
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:
所以我們先輸入
yum install epel-release 安裝EPEL
yum install python-pip 安裝pip
成功安裝
沒有留言:
張貼留言