Skip to content

Instantly share code, notes, and snippets.

@JeanMeche
Created May 14, 2014 21:47
Show Gist options
  • Save JeanMeche/dcdf089d753212957299 to your computer and use it in GitHub Desktop.
Save JeanMeche/dcdf089d753212957299 to your computer and use it in GitHub Desktop.
Install Python
#!/bin/bash
rm -R /System/Library/Frameworks/Python.framework/Versions/3.4
mv /Library/Frameworks/Python.framework/Versions/3.4 /System/Library/Frameworks/Python.framework/Versions
chown -R root:wheel /System/Library/Frameworks/Python.framework/Versions/3.4
rm /System/Library/Frameworks/Python.framework/Versions/Current
ln -s /System/Library/Frameworks/Python.framework/Versions/3.4 /System/Library/Frameworks/Python.framework/Versions/Current
rm /usr/bin/pydoc
rm /usr/bin/python
rm /usr/bin/pythonw
rm /usr/bin/python-config
rm /System/Library/Frameworks/Python.framework/Versions/3.4/bin/pydoc
rm /System/Library/Frameworks/Python.framework/Versions/3.4/bin/python
rm /System/Library/Frameworks/Python.framework/Versions/3.4/bin/pythonw
rm /System/Library/Frameworks/Python.framework/Versions/3.4/bin/python-config
ln -s /System/Library/Frameworks/Python.framework/Versions/3.4/bin/pydoc3 /usr/bin/pydoc
ln -s /System/Library/Frameworks/Python.framework/Versions/3.4/bin/python3 /usr/bin/python
ln -s /System/Library/Frameworks/Python.framework/Versions/3.4/bin/pythonw3 /usr/bin/pythonw
ln -s /System/Library/Frameworks/Python.framework/Versions/3.4/bin/python3-config /usr/bin/python-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment