Aaronphy / aaronphy.github.io

Blog
3 stars 0 forks source link

Python shell #58

Open Aaronphy opened 1 year ago

Aaronphy commented 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
Aaronphy commented 1 year ago

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