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.

Revisions

  1. lantrix renamed this gist May 16, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. lantrix created this gist Apr 15, 2021.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ### Invoke using Python with pyenv

    Requires Python 2.7.x

    Using [pyenv](https://github.com/pyenv/pyenv) and the [pyenv-virtualenv](https://github.com/pyenv/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.

    ```shell
    cd data_loaders
    pyenv local
    pyenv -m venv .data
    .\data\scripts\Activate.ps1
    pip install -r requirements.txt
    python myfile.py
    ```