Skip to content

Instantly share code, notes, and snippets.

@genekogan
Created January 23, 2019 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save genekogan/a1c75937e71b8015a71edb09910aeba2 to your computer and use it in GitHub Desktop.
Save genekogan/a1c75937e71b8015a71edb09910aeba2 to your computer and use it in GitHub Desktop.
Bizon cheatsheet

Using pyenv + pipenv

install PyEnv and PipEnv if you don't have it already:

git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
exec "$SHELL"
pip install -U pipenv

create a new project:

mkdir myproject
cd myproject

set version of python:

pyenv local 3.5.6

install local pip dependencies:

pipenv install tensorflow-gpu
pipenv install scipy
pipenv install opencv-python

enter pyenv local shell:

pipenv shell

more info and commands here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment