I'm trying to write a rake file to import data from csv, and I want to use smarter\_csv gem. I have the gem installed globally (I don't want to add it to my Gemfile because it's a one-off task).

In my rake file I require 'smarter\_csv' but when I run the task I get the following error:

```
rake aborted!
LoadError: cannot load such file -- smarter_csv

```

Every rake example I can find tells you to just require 'foo'. I can run the code manually in irb after requiring smarter\_csv.

What am I missing?

(If it matters, I'm using rbenv on macOS Catalina)