一、啓動python下載服務器
pyththon -m SimpleHTTPServer 執行該命令會在當前目錄下啓動一個文件下載服務器,默認打開8000端口
二、安裝pip
wget https://files.pythonhosted.org/packages/ae/e8/2340d46ecadb1692a1e455f13f75e596d4eab3d11a57446f08259dee8f02/pip-10.0.1.tar.gz tar -xvf pip-10.0.1.tar.gz cd pip-10.0.1 python setup.py install
三、修改pip鏡像源加速安裝
vim ~/.pip/pip.conf [global] index-url = https://pypi.douban.com/simple/