/python-questions

For StackOverflow or GitHub questions where an example is needed

MIT LicenseMIT

Personal repo for examples on sites like StackOverflow, GitHub or GitLab issues

  • carefully prepared questions:

    • draft and refine before asking
    • well-researched: reference other attempts / specs / ahead
    • succinct, well-articulated: clean up wording. Differentiate from other, unrelated
  • minimal recreation

    • with tests
  • reuse: not create a diff different repo each time

Start

Create virtual environment

Use virtualenv as a sandbox so this doesn't bork your own packages. Have a very recent python version.

$ python3 -m venv .venv

If the above doesn't work, see Install packages using pip and virtual environments. If later on, that link doesn't work, search that phrase.

Enter virtual environment

bash / ???:

$ source .venv/bin/activate

zsh:

$ . .venv/bin/activate

Install dependencies

pip install -e .