Installation 如何在Google COLAB中安装pyjags

Installation 如何在Google COLAB中安装pyjags,installation,pip,google-colaboratory,Installation,Pip,Google Colaboratory,请帮助我在google colaboratory环境中安装pyjags。我试过这个命令: > %pip install pyjags Collecting pyjags Using cached https://files.pythonhosted.org/packages/b5/23/22e8468ff9f8e0d5472e388c783c45b3c42b562df4b9b6bab483d935b5bc/pyjags-1.3.7.tar.gz ERROR: Command error

请帮助我在google colaboratory环境中安装pyjags。我试过这个命令:

> %pip install pyjags
Collecting pyjags
  Using cached https://files.pythonhosted.org/packages/b5/23/22e8468ff9f8e0d5472e388c783c45b3c42b562df4b9b6bab483d935b5bc/pyjags-1.3.7.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

但它给了我这个错误。我怎样才能解决它?谢谢。

您必须先安装
jags

在一个单元格中运行这两个

!sudo apt-get install jags
!pip install pyjags

耶!非常感谢,现在它工作了:)