$ mkdir ~/.pip $ cat > ~/.pip/pip.conf << EOF [global] timeout=60 trusted-host=pypi.douban.com index-url=http://pypi.douban.com/simple EOF