Jekyll on Windows: Pygments not working

前端 未结 10 1276
失恋的感觉
失恋的感觉 2020-12-23 20:06

I updated to the latest JekyllBuild (1.0.3) before I always used the RC. After updating the parsing of codes (with Pygments) doesn\'t work anymore. I always get the followin

相关标签:
10条回答
  • 2020-12-23 20:44

    Go into the directory that has python.exe and copy and paste it into a new file named python2.exe. Fixed!

    0 讨论(0)
  • 2020-12-23 20:45

    Look at https://github.com/juthilo/run-jekyll-on-windows/. It helps with Jekyll problems on Windows, including Pygments (from https://github.com/juthilo/run-jekyll-on-windows/#install-python-environment and up).

    0 讨论(0)
  • 2020-12-23 20:47

    I had the same issue. Seems there's a problem in Pygments.rb 0.5.1. By rolling back to Pygments 0.5.0 the error disappeared.

    gem uninstall pygments.rb --version ">0.5.0"
    gem install pygments.rb --version "=0.5.0"
    

    Hope this helps.

    0 讨论(0)
  • 2020-12-23 20:48

    Just for a reference to those who meet the same problem like me. I had python 2.7.6 installed first and then installed python 3.3.0. So re-install python 2.7.6 fixed the problem for me. pygments.rb (0.5.4) Python 2.7.6 ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] jekyll 1.4.3 OSX 10.8.5

    0 讨论(0)
提交回复
热议问题