Category: Mac


mac pip issues

By polfilm,
sudo -H pip install --ignore-installed -U numpy
pip install --ignore-installed six
pip install --user (last one installs everything into /User//Library/Python/2.7/ path)

Ref: http://apple.stackexchange.com/questions/209572/how-to-use-pip-after-the-os-x-el-capitan-upgrade comment by Yuri

Mac Uninstall Java & Switch Java Versions

By polfilm,
# Uninstall JDK
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

#Add Ability to switch between 7 & 8
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_7_HOME=$(/usr/libexec/java_home -v1.7)

alias java7='export JAVA_HOME=$JAVA_7_HOME'
alias java8='export JAVA_HOME=$JAVA_8_HOME'

#default java8
export JAVA_HOME=$JAVA_8_HOME