Search code examples
pythonzipline

Zipline command line interface does not work after installation


After installing zipline with pip, I can't run:

zipline run --help

on my OSX terminal. It says:

-bash: zipline: command not found

What am I doing wrong?


Solution

  • If you can import in Python you can run it from the command line with the -m argument::

    python -m zipline
    

    -m mod : run library module as a script (terminates option list)