Created
February 10, 2018 05:57
-
-
Save syfun/760690c7b13e39b5fc60fdb86081e5b2 to your computer and use it in GitHub Desktop.
pyenv install加速
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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