Issue #1106 invalid
Lorin Ricker
created an issue

On Linux/Ubuntu 14.04, with pre-existing:

$ pygmentize -V Pygments version 1.6, (c) 2006-2013 by Georg Brandl.

I did:

$ sudo pip install Pygments --upgrade # (as from sidebar on [sudo] password for lorin: Downloading/unpacking Pygments from Downloading Pygments-2.0.2-py2-none-any.whl (672kB): 672kB downloaded Installing collected packages: Pygments Found existing installation: Pygments 1.6 Uninstalling Pygments: Successfully uninstalled Pygments Successfully installed Pygments Cleaning up...

Now I get this problem:

$ pygmentize -V bash: /usr/bin/pygmentize: No such file or directory

...Or in a new bash login session/window:

$ pygmentize -V Traceback (most recent call last): File "/usr/local/bin/pygmentize", line 7, in <module> from pygments.cmdline import main ImportError: No module named pygments.cmdline

Can you advise/help? TIA -- Lorin

Comments (4)

  1. Christoph Kindl


    Had a similar problem -- uninstalling and reinstalling helped; I'm not sure what caused the issue, I've installed the latest dev version from a local directory and change the name of that directory afterwards, maybe I should not have done that...

    Cheers, Chris

  2. Tim Hatch

    Since it was in /usr/bin before, I'm guessing you had it installed from a deb? Try removing that.

    Also, you don't need a new shell after moving things around, simply export PATH=$PATH causes a rehash.

  3. Log in to comment