I’m in the ongoing process of setting up my new MacBook Air (M1, 2020) for my data analytics projects plus grad-school homework, so I need a very average set up of Homebrew, Python, Pyenv, Jupyterlab, R; on top of some simple things for my blog like Jekyll and Ruby. While doing this, I’ve been encountering issues - mainly because of incompatibilities with python libraries that are not yet updated. I’ll be logging these issues and hopefully whatever workaround I found to solve them.
Install Xcode and Command Line tools first, as this takes the longest.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Add Homebrew to PATH:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/camilaburne/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
Then check if it can run with:
brew install git
Then, authenticate via SSH to Github so you can connect to your repos.
Unhide files with shift+command+dot and sudo chflags nohidden, and open my bash profile file just to check it out :)
sudo chflags nohidden /Library/ ~/Library/ user@Camilas-Air ~ % touch . bash_profile user@Camilas-Air ~ % open . bash_profile
Install Python3 the “right” way, without removing python 2.7 because that’s a mistake I’ve made in the past 🤦🏼♀️
pyenv instructions from its github repo
brew update brew install pyenv
pipenv instructions from its website
pip install --user pipx pipx install pipenv
Install jupyterlab with pyenv.
jupyterlab read the docs:
pipenv install jupyterlab pipenv shell
Some help to manage pyenv and jupyter, because I haven’t got to handle this successfully:
Install Ruby and Jekyll, following this repo.
I think I made a mistake when installing my Jupyter notebook (which I installed at the same time as Jup Lab), I get this error, which I temporarily solved with:
brew install openblas pip3 install --upgrade pip pip3 install --upgrade pip3 setuptools wheel
I have another issue downloading the library hdbcli to install drivers for Sap Hana. Apparently it’s not compatible with anything I have.
When I see those issue I realize I have no clue what I’m doing 🥲
Be the first and only to leave a comment ever - via github on this ticket. Comments should appear on this page instantly, but I woudln't be surprised if it's not working (my bad).