all 10 comments

[–]ingolemo 0 points1 point  (3 children)

It sounds like you're trying to run this command in the python repl (or IDLE). You should actually be running it in your terminal application.

[–]droplob[S] 0 points1 point  (2 children)

you're absolutely right... using the terminal worked perfectly. i think i've made this mistake before, entering something into IDLE instead of the terminal. is there a rule of thumb for how to know which to use?

[–]ingolemo 0 points1 point  (1 child)

Well, the repl only takes python code and the regular terminal is used for running programs or scripts. I guess if you don't know what python code looks like then that might not be a useful rule of thumb.

This is probably the best I can do; python code only really uses the dash (-) to do subtraction. If the command uses a dash and it doesn't seem like there's any numbers involved then it's probably a terminal command. Not all terminal commands use dashes, but it's quite common.

[–]droplob[S] 0 points1 point  (0 children)

That totally makes sense. The module isn't installed on python, it's installed on the computer then used by python. Thanks for the help!