Last active
May 21, 2020 23:09
-
-
Save p3jitnath/ebfe90acb3ad9652c08404eabc760424 to your computer and use it in GitHub Desktop.
Remove a version of python
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
prefix='/usr/local/' | |
pyver='3.6' | |
sudo rm -rf \ | |
${prefix}bin/python${pyver} \ | |
${prefix}bin/pip${pyver} \ | |
${prefix}bin/include/python${pyver} \ | |
${prefix}lib/libpython${pyver}.a \ | |
${prefix}lib/python${pyver} \ | |
${prefix}bin/python${pyver} \ | |
${prefix}bin/pip${pyver} \ | |
${prefix}bin/include/python${pyver} \ | |
${prefix}lib/libpython${pyver}.a \ | |
${prefix}lib/python${pyver} \ | |
${prefix}lib/pkgconfig/python-${pyver}.pc \ | |
${prefix}lib/libpython${pyver}m.a \ | |
${prefix}bin/python${pyver}m \ | |
${prefix}bin/2to3-${pyver} \ | |
${prefix}bin/python${pyver}m-config \ | |
${prefix}bin/idle${pyver} \ | |
${prefix}bin/pydoc${pyver} \ | |
${prefix}bin/pyvenv-${pyver} \ | |
${prefix}share/man/man1/python${pyver}.1 \ | |
${prefix}include/python${pyver}m | |
echo "${pyver} succesfully uninstalled!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment