Chatterbot安装

huangapple go评论75阅读模式
英文:

Chatterbot Installation

问题

我已经尝试安装Chatterbot已经两天了,但一直失败。我正在使用conda环境使用pip进行安装。
这是错误信息:

 安装构建依赖项...错误
  错误:子进程退出时出现错误
  
  × pip子进程未成功运行以安装构建依赖项。
  │ 退出代码:1
  ╰─> [2578行输出]
      收集setuptools
        使用缓存的setuptools-68.0.0-py3-none-any.whl(804 KB)
      收集wheel<0.33.0,>0.32.0
        使用缓存的wheel-0.32.3-py2.py3-none-any.whl(21 KB)
      收集Cython
        使用缓存的Cython-0.29.35-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl(1.9 MB)
      收集cymem<2.1.0,>=2.0.2
        使用缓存的cymem-2.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl(34 KB)
      收集preshed<2.1.0,>=2.0.1
        使用缓存的preshed-2.0.1.tar.gz(113 KB)
        准备元数据(setup.py):已开始
        准备元数据(setup.py):已完成状态'完成'
      收集murmurhash<1.1.0,>=0.28.0
        使用缓存的murmurhash-1.0.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl(21 KB)
      收集thinc<7.1.0,>=7.0.8
        使用缓存的thinc-7.0.8.tar.gz(1.9 MB)
        准备元数据(setup.py):已开始
        准备元数据(setup.py):已完成状态'完成'
      收集blis<0.3.0,>=0.2.1(来自thinc<7.1.0,>=7.0.8)
        使用缓存的blis-0.2.4.tar.gz(1.5 MB)
        准备元数据(setup.py):已开始
        准备元数据(setup.py):已完成状态'完成'
      收集wasabi<1.1.0,>=0.0.9(来自thinc<7.1.0,>=7.0.8)
        使用缓存的wasabi-0.10.1-py3-none-any.whl(26 KB)
      收集srsly<1.1.0,>=0.0.6(来自thinc<7.1.0,>=7.0.8)
        使用缓存的srsly-1.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl(209 KB)
      收集numpy>=1.7.0(来自thinc<7.1.0,>=7.0.8)
        使用缓存的numpy-1.25.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl(17.6 MB)
      收集plac<1.0.0,>=0.9.6(来自thinc<7.1.0,>=7.0.8)
        使用缓存的plac-0.9.6-py2.py3-none-any.whl(20 KB)
      收集tqdm<5.0.0,>=4.10.0(来自thinc<7.1.0,>=7.0.8)
        使用缓存的tqdm-4.65.0-py3-none-any.whl(77 KB)
      为已收集的软件包构建轮:preshed、thinc、blis
        为preshed构建轮(setup.py):已开始
        为preshed构建轮(setup.py):完成状态'错误'
        错误:子进程退出时出现错误
        │ 退出代码:1
        ╰─> [218行输出]
            /home/chalo/anaconda3/lib/python3.10/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
            !!
                    ********************************************************************************
                    需求应由PEP 517安装程序满足。
                    如果您使用pip,可以尝试`pip install --use-pep517`。
                    ********************************************************************************

最初,我将setuptools降级到版本58.2.0,但没有起作用。我还安装了cmake并降级了pip。
我还运行了pip install --use-pep517 setuptools,得到了要求已满足的消息。
这是附加的错误消息:

注意:此错误来自子进程,可能与pip无关。
        错误:构建blis轮失败
        运行setup.py为blis清理
      未能为preshed、thinc、blis构建轮
      错误:无法为基于pyproject.toml的项目安装preshed、thinc、blis轮
      [输出结束]
英文:

I have been trying to install Chatterbot for the last 2 days but it keeps failing. I Am installing it in a conda environment using pip.
Here is the Error:

 Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [2578 lines of output]
      Collecting setuptools
        Using cached setuptools-68.0.0-py3-none-any.whl (804 kB)
      Collecting wheel<0.33.0,>0.32.0
        Using cached wheel-0.32.3-py2.py3-none-any.whl (21 kB)
      Collecting Cython
        Using cached Cython-0.29.35-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
      Collecting cymem<2.1.0,>=2.0.2
        Using cached cymem-2.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34 kB)
      Collecting preshed<2.1.0,>=2.0.1
        Using cached preshed-2.0.1.tar.gz (113 kB)
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'done'
      Collecting murmurhash<1.1.0,>=0.28.0
        Using cached murmurhash-1.0.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21 kB)
      Collecting thinc<7.1.0,>=7.0.8
        Using cached thinc-7.0.8.tar.gz (1.9 MB)
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'done'
      Collecting blis<0.3.0,>=0.2.1 (from thinc<7.1.0,>=7.0.8)
        Using cached blis-0.2.4.tar.gz (1.5 MB)
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'done'
      Collecting wasabi<1.1.0,>=0.0.9 (from thinc<7.1.0,>=7.0.8)
        Using cached wasabi-0.10.1-py3-none-any.whl (26 kB)
      Collecting srsly<1.1.0,>=0.0.6 (from thinc<7.1.0,>=7.0.8)
        Using cached srsly-1.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (209 kB)
      Collecting numpy>=1.7.0 (from thinc<7.1.0,>=7.0.8)
        Using cached numpy-1.25.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.6 MB)
      Collecting plac<1.0.0,>=0.9.6 (from thinc<7.1.0,>=7.0.8)
        Using cached plac-0.9.6-py2.py3-none-any.whl (20 kB)
      Collecting tqdm<5.0.0,>=4.10.0 (from thinc<7.1.0,>=7.0.8)
        Using cached tqdm-4.65.0-py3-none-any.whl (77 kB)
      Building wheels for collected packages: preshed, thinc, blis
        Building wheel for preshed (setup.py): started
        Building wheel for preshed (setup.py): finished with status 'error'
        error: subprocess-exited-with-error
      
        × python setup.py bdist_wheel did not run successfully.
        │ exit code: 1
        ╰─> [218 lines of output]
            /home/chalo/anaconda3/lib/python3.10/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
            !!
      
                    ********************************************************************************
                    Requirements should be satisfied by a PEP 517 installer.
                    If you are using pip, you can try `pip install --use-pep517`.
                    ********************************************************************************
      

Initially, I downgraded setuptools to version 58.2.0 but did not work. I have also installed cmake and downgraded pip too.
I also ran pip install --use-pep517 setuptools and got requirement already satisfied.
Here is an additional error message:

note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for blis
        Running setup.py clean for blis
      Failed to build preshed thinc blis
      ERROR: Could not build wheels for preshed, thinc, blis, which is required to install pyproject.toml-based projects
      [end of output]

答案1

得分: 1

我搞清楚了。看起来Chatterbot不支持当前版本的Python,具体来说是> 3.8版本。

我创建了一个新的conda环境conda create -n chatterbot python=3.8
安装了chatterbotpip install Chatterbot

访问:https://pypi.org/project/ChatterBot/ 获取更多关于要求的信息。

英文:

I figured it out. It looks like Chatterbot does not support the current versions of Python, specifically > 3.8 versions.

I created a new conda env: conda create -n chatterbot python=3.8
Installed chatterbot: pip install Chatterbot

Visit: https://pypi.org/project/ChatterBot/ for more information about the requirements.

huangapple
  • 本文由 发表于 2023年6月26日 17:57:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/76555580.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定