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.