Skip to content

Instantly share code, notes, and snippets.

@syfun
Created February 10, 2018 05:57
Show Gist options
  • Save syfun/760690c7b13e39b5fc60fdb86081e5b2 to your computer and use it in GitHub Desktop.
Save syfun/760690c7b13e39b5fc60fdb86081e5b2 to your computer and use it in GitHub Desktop.
pyenv install加速
#!/usr/bin/env bash
version=$1
if [ ! -d "~/.pyenv/cache" ]; then
mkdir -p ~/.pyenv/cache
fi
wget http://mirrors.sohu.com/python/$version/Python-$version.tar.xz -P ~/.pyenv/cache
pyenv install -v $version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment