-
Notifications
You must be signed in to change notification settings - Fork 0
Dev Env
benjaminbang987 edited this page May 2, 2019
·
1 revision
Install pyenv virtual env
$ brew install pyenv-virtualenv
Add the following lines to your ~/.bash_profile
file
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
if which pyenv-virtualenv-init > /dev/null; then
eval "$(pyenv virtualenv-init -)";
fi
Install python
$ LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib" CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/zlib/include" pyenv install -v 3.6.2
Create a new virtual environment and activate
pyenv virtualenv 3.6.2 c4sfcensusgeocoder
pyenv activate c4sfcensusgeocoder
Install python packages
pip install -r requirements.txt
brew install readline xz
Start jupyter notebook server
python3 -m jupyter notebook