1. 准备 安装需要软件 yum -u install httpd wget wget https://pypi.python.org/packages ... ls-0.6c11-py2.6.egg sh setuptools-0.6c11-py2.6.egg tar xzvf pip-1.5.6.tar.gz python setup.py install pip install pip2pi2. 下载所需要的软件包到文件/opt/pip/packages 执行命令 dir2pi /opt/pip/packages ln -s /opt/pip/packages/ /var/www/html/pip service httpd start iptables -I INPUT -p tcp --dport 80 -j ACCEPT3. 使用 创建pip.conf文件 vi ~/.pip/pip.conf [global] index-url = http://192.168.0.191/pip/simple
pip install <package name>
|