I can’t get my program to use pandoc from inside a venv.

I can use pandoc from the system context.

From inside the venv

which pandoc
/usr/bin/pandoc 

I’ve installed pandoc inside the venv with pip, and confirmed the files are in the venv.

What am I missing?

    • nate3d@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      Okay perfect, just wanted to check.

      Next I’d say check your venv to verify the pandoc binary is indeed there:

      find $VIRTUAL_ENV -name pandoc
      

      If it’s not there, you should be able to install it by entering a python shell from your venv and do:

      import pypandoc
      pypandoc.download_pandoc()
      

      Hopefully that’s able to resolve it for ya. Venv should be at the front of your path so it should prefer bins from there.