[英]How to upgrade pygments.rb use and the latest library of pygments(python)
我在其中一个项目中使用pygments.rb,我想将pygments.rb使用的python库升级到最新版本。
我正在使用Ubuntu 12.04机器。
Pygments Python软件包提供了命令行实用程序pygmentize
,而ubuntu软件包python-pygments
。 Pygments为1.6,Ubuntu为1.4。
如果您当前正在使用ubuntu软件包,则可能需要将其删除以避免任何冲突
sudo apt-get remove python-pygments
管理Python软件包的最简单方法是使用pip
sudo apt-get install python-pip python-dev build-essential
然后安装/升级Pygments
软件包
sudo pip install Pygments --upgrade
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.