用户工具

站点工具


zh:notes:install_python3-pip

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
zh:notes:install_python3-pip [2021/02/16 15:40]
pzczxs
zh:notes:install_python3-pip [2022/01/27 08:23] (当前版本)
pzczxs 讨论状态变化了
行 6: 行 6:
 ===== Requirements ===== ===== Requirements =====
   * [[:​zh:​notes:​install_python3.7|Python 3]]   * [[:​zh:​notes:​install_python3.7|Python 3]]
 +
 +===== Install Dependencies =====
 +<code bash>
 +> yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
 +</​code>​
 +
 +===== Install setuptools =====
 +<code bash>
 +> wget https://​files.pythonhosted.org/​packages/​12/​68/​95515eaff788370246dac534830ea9ccb0758e921ac9e9041996026ecaf2/​setuptools-53.0.0.tar.gz
 +> tar -zxvf setuptools-53.0.0.tar.gz
 +> rm -f setuptools-53.0.0.tar.gz
 +> cd setuptools-53.0.0
 +> python setup.py build
 +> python setup.py install
 +</​code>​
 +
 +===== Install pip =====
 +<code bash>
 +> wget https://​files.pythonhosted.org/​packages/​b7/​2d/​ad02de84a4c9fd3b1958dc9fb72764de1aa2605a9d7e943837be6ad82337/​pip-21.0.1.tar.gz
 +> tar -zxvf pip-21.0.1.tar.gz
 +> rm -f pip-21.0.1.tar.gz
 +> cd pip-21.0.1
 +> python setup.py build
 +> python setup.py install
 +
 +# redirect link
 +> mv /​usr/​bin/​pip /​usr/​bin/​pip.bak
 +> ln -s /​usr/​local/​python3.7.4/​bin/​pip3 /​usr/​bin/​pip
 + 
 +# To check the version
 +> pip --version
 +</​code>​
 +
 +~~DISCUSSION:​closed~~
zh/notes/install_python3-pip.1613461257.txt.gz · 最后更改: 2021/02/16 15:40 由 pzczxs