由于在 PyPI 中有一个名叫 powerline 的不相关的项目,导致本项目的命名冲突了,所以我们在这上面取名叫 powerline-status

pip install powerline-status

上面这种安装方式是首选,因为它会自动安装最近的发行版本。为了获取当前的 dev 版本,可以使用:

pip install --user git+git://github.com/powerline/powerline

如果 Powerline 已经检出到某个目录中了,可以使用:

pip install --user --editable={path_to_powerline}

但是请注意这种方式 pip 不会生成 powerline 可执行文件,并且需要自己额外做一些事情,比如:

ln -s {path_to_powerline}/scripts/powerline ~/.local/bin

~/.local/bin 应该被替换成一些在 $PATH 中提供的路径。

友情提示:如果 ISP 因为一些原因禁用了 git 协议,github 也提供了 ssh(git+ssh://[email protected]/powerline/powerline)和 https(git+https://github.com/powerline/powerline)协议。 git 协议应该是最快的,但同时也是最不安全的。

results matching ""

    No results matching ""