Open Aaronphy opened 1 year ago
Remove python [version number] completely step by step
ls /Library/Frameworks/Python.framework/Versions/
sudo rm -rf /Library/Frameworks/Python.framework/Versions/[version number]
sudo rm -rf "/Applications/Python [version number]"
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/[version number]'
cd /usr/local/bin/
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/[version number]' | awk '{print $9}' | tr -d @ | sudo xargs rm
Solve the pyenv install speed
version="*.*.*"; echo $version; wget "https://mirrors.huaweicloud.com/python/$version/Python-$version.tar.xz" -P ~/.pyenv/cache/;pyenv install $version