【问题标题】:'pip install duckling' giving issue'pip install duckling' 给出问题
【发布时间】:2017-09-07 09:15:22
【问题描述】:

我想安装小鸭来进行 Rasa nlu 训练,但它给出了如下图所示的问题,请帮我解决这个问题。enter image description here

【问题讨论】:

    标签: rasa-nlu


    【解决方案1】:

    作为一个合适的替代方案,您是否考虑在 docker 中运行 Rasa NLU。 rasa/rasa_nlu:latest-full docker 映像包括小鸭。如果你想开始使用它并且你已经安装了 docker 你应该能够运行

    docker run rasa/rasa_nlu:latest-full
    

    然后您可以通过 Rasa 的 HTTP API https://github.com/RasaHQ/rasa_nlu#example-use 与 Rasa 进行交互

    docker 文件允许进行更复杂的设置,例如重写默认配置文件并将日志/模型/等保存到永久磁盘

    https://github.com/RasaHQ/rasa_nlu#advanced-docker

    【讨论】:

      【解决方案2】:

      我遇到了同样的问题!这基本上是 jpype 模块的问题。 您需要首先在您的环境中安装 jpype。 你可以使用conda install -c conda-forge jpype1 对于安装 jpype,您还可以参考 official link for jpype installation。

      jpype安装成功后,可以使用duckiling安装

      pip install duckling -U
      

      我希望这会有所帮助!

      【讨论】:

        【解决方案3】:

        你应该下载windows的VC+编译器,然后尝试pip安装。

        你可以在这里下载 https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi

        【讨论】:

        • 感谢您的回复。我正在使用 Python 3.6 并安装了 Visual C++ 14.0,但仍然面临这个问题。我仍然需要安装您建议的内容,或者此问题是否需要任何其他配置。
        • 对于 python 3,我认为这并不容易。 https://stackoverflow.com/questions/29909330/microsoft-visual-c-compiler-for-python-3-4。如果您觉得此设置有很多工作要做,我会说您应该寻找VM/Docker with py3 image,这样会做得更好。
        猜你喜欢
        • 2021-08-01
        • 1970-01-01
        • 1970-01-01
        • 2013-07-18
        • 2014-06-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多