Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where the heck is CSVkit?

Tags:

python

bash

macos

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?

like image 695
Amanda Avatar asked Nov 02 '22 02:11

Amanda


1 Answers

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:

  1. 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
    
  2. Run pip install csvkit without the --user flag, which should put the scripts in your path (probably /usr/local/bin).

like image 107
ford Avatar answered Nov 15 '22 04:11

ford