jmaupetit/md2pdf

Error module morkdown2

nCombo opened this issue · 5 comments

Linux:

Error when i try to excute "$ python setup.py install" :
from markdown2 import markdown, markdown_path
ImportError: No module named markdown2

Which version of python are you running? Did you try a pip install -r requirements.txt first?

I use Ubuntu 14.04 LTS where Python 2.7 is default version. But i can switch to Python 3.4

And have you tried to clone the project and run:

$ pip install -r requirements.txt

To use md2pdf, I do :

  1. git clone https://github.com.jmaupetit/md2pdf.git
  2. sudo apt-get libffi-dev (for ubuntu)
  3. sudo pip install -r requirements.txt (for python)
  4. sudo python setup.py install (to install md2pdf)
  5. md2pdf --css=my_markdown.css input.md output.pdf

notes:
You may indicate step by step for new Python user
Thank you for md2pdf

Thank you for this contribution! I think it would be easier for non-pythonista to use the docker container. WDYT?