Last active
March 13, 2016 07:33
-
-
Save Lh4cKg/decad2d6e2ce802370f9 to your computer and use it in GitHub Desktop.
remove completely python3.3 from linux, usage: sh delpy.sh or add .bashrc command alias
This file contains 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
# add remove command in .bashrc | |
# remove python | |
alias remove-python="sudo rm -rf /usr/local/lib/python3.3 && sudo rm -rf /usr/local/lib/libpython3.3m.a && sudo rm -rf /usr/local/lib/pkgconfig/python-3.3.pc && sudo rm -rf /usr/local/bin/python3.3 && sudo rm -rf /usr/local/bin/python3.3m && sudo rm -rf /usr/local/bin/python3.3m-config" | |
# remove pip | |
alias remove-pypi="sudo python3.3 -m pip uninstall pip" | |
# or | |
alias remove-pip="sudo rm -rf /usr/lib/python3.3/site-packages/pip && sudo rm -rf /usr/lib/python3.3/site-packages/pip-8.1.0.dist-info" |
This file contains 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/bash | |
# remove python | |
sudo rm -rf /usr/local/lib/python3.3 | |
sudo rm -rf /usr/local/lib/libpython3.3m.a | |
sudo rm -rf /usr/local/lib/pkgconfig/python-3.3.pc | |
sudo rm -rf /usr/local/bin/python3.3 | |
sudo rm -rf /usr/local/bin/python3.3m | |
sudo rm -rf /usr/local/bin/python3.3m-config | |
# remove pip | |
sudo python3.3 -m pip uninstall pip setuptools | |
# or | |
sudo rm -rf /usr/lib/python3.3/site-packages/pip | |
sudo rm -rf /usr/lib/python3.3/site-packages/pip-8.1.0.dist-info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment