Debian Linux 下安装pip3

时间:2022-01-27 15:49:33

由于Debian自带了python3,于是只需要安装pip

1.首先安装setuptools

下载
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26

解压 tar -zxvf setuptools-19.6.tar.gz 转到其目录下 cd setuptools-19.6 python3 setup.py build python3 setup.py install

setuptools安装完成就可以安装pip了

wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb

tar -zxvf pip-8.0.2.tar.gz

cd pip-8.0.2

python3 setup.py build

python3 setup.py install

现在就可以放心 pip 了