Skip to content

Instantly share code, notes, and snippets.

@lantrix
Last active May 16, 2021 06:20
Show Gist options
  • Save lantrix/05631a10c1461e8934f10197e3482565 to your computer and use it in GitHub Desktop.
Save lantrix/05631a10c1461e8934f10197e3482565 to your computer and use it in GitHub Desktop.

Invoke using Python with pyenv

Requires Python 2.7.x

Using pyenv and the pyenv-virtualenv plugin means you can install the required python version (2.7.x) and packages will not be installed in your global packages, but rather locally in a virtual environment.

cd data_loaders
pyenv local
pyenv -m venv .data
.\data\scripts\Activate.ps1
pip install -r requirements.txt
python myfile.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment