Where the heck is CSVkit?

bash, macos, python

Solution

The `--user` flag should be installing the scripts in `$PYTHONUSERBASE/bin`. If `PYTHONUSERBASE` isn't set, I believe this defaults to `$HOME/.local`.

I see two options:

Set `$PYTHONUSERBASE` or look in `$HOME/.local/bin` for the `csvcut` script. Then, add `$HOME/.local/bin` to your path:

export PATH=$HOME/.local/bin:$PATH

Run `pip install csvkit` without the `--user` flag, which should put the scripts in your path (probably `/usr/local/bin`).

Problem

I installed CSVkit on OSX with `pip install --user csvkit` and it seems to have worked (re-installing) gets me a `Requirement already satisfied` message, but `csvcut` isn't available at my command prompt and `which csvcut` returns nothing. How do I get csvkit into my path by default?

Original source