概述
1、内网编译安装pip
有的时候我们需要在内网环境下去用pip安装某些Python安装包,这个时候可以怎么实现呢?
1、内网编译安装pip
1.1、安装setuptools
setuptools源码包: https://pypi.python.org/pypi/setuptools
wget https://files.pythonhosted.org/packages/e0/02/2b14188e06ddf61e5b462e216b15d893e8472fca28b1b0c5d9272ad7e87c/setuptools-38.5.2.zip unzip setuptools-38.5.2.zip cd setuptools-38.5.2 python setup.py install
1.2、安装pip
pip源码包: https://pypi.python.org/pypi/pip#downloads
wget https://files.pythonhosted.org/packages/69/81/52b68d0a4de760a2f1979b0931ba7889202f302072cc7a0d614211bc7579/pip-18.0.tar.gz tar -xvf pip-18.0.tar.gz cd pip-18.0 python setup.py build && python setup.py install