无法启动qutebrowser,已安装的软件包显示为丢失

时间:2019-05-09 13:31:36

标签: installation pip install

我正在尝试将qutebrowser与Tox一起安装,并按照this页上的说明进行操作。 但是,这没有用。当我跑步时

python3 -m qutebrowser

我收到一条错误消息

Fatal error: jinja2 is required to run qutebrowser but could not be imported! Maybe it's not installed?

The error encountered was:
No module named 'jinja2'

Please search for the python3 version of jinja2 in your distributions packages, or see https://github.com/qutebrowser/qutebrowser/blob/master/doc/install.asciidoc

If you installed a qutebrowser package for your distribution, please report this as a bug.

,或者用PyYAML/yaml代替jinja2

但是,如果我跑步

sudo pip install jinja2
sudo pip install pyyaml

我明白了

Requirement already satisfied: jinja2 in /usr/local/lib/python2.7/dist-packages (2.10.1)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib/python2.7/dist-packages (from jinja2) (0.23)

Requirement already satisfied: pyyaml in /usr/local/lib/python2.7/dist-packages (5.1)

我想问题可能是安装的版本是针对python2.7的,但是我遵循了these的说明而未做任何更改。

1 个答案:

答案 0 :(得分:0)

您对那些指令进行了更改:您运行python3而不是python

如果同时安装了Python 2.7和Python 3来安装Python 3软件包,则需要运行pip3 installpython3 -m pip install