- Author
- Peter Polidoro
- License
- BSD
Download and install XCode:
https://developer.apple.com/xcode/
Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Insert Homebrew directory at the top of the PATH by adding the following line to the bottom of your ~/.profile file (create it if it does not exist):
export PATH=/usr/local/bin:/usr/local/sbin:$PATHOpen a new terminal to complete the PATH modification or run:
source ~/.profileUpdate brew:
sudo chown -R $(whoami):admin /usr/local
brew updatebrew install gitbrew install python3Make a directory to store virtual environments:
mkdir ~/venvsCreate and activate a virtual environment:
https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments
python3 -m venv ~/venvs/example_env
source ~/venvs/example_env/bin/activateIn an activated virtual environment, upgrade pip and ipython:
pip install pip --upgrade
pip install ipython --upgradebrew install pythonInstall virtualenv:
https://virtualenv.pypa.io/en/stable/installation/
Example:
pip install virtualenv --upgradeMake a directory to store virtual environments:
mkdir ~/venvsCreate and activate a virtual environment:
https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments
virtualenv ~/venvs/example_env
source ~/venvs/example_env/bin/activateIn an activated virtual environment, upgrade pip and ipython:
pip install pip --upgrade
pip install ipython --upgrade