gunthercox / ChatterBot

ChatterBot is a machine learning, conversational dialog engine for creating chat bots
https://chatterbot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
14.11k stars 4.44k forks source link

Installation Fails: cannot import name 'msvccompiler' from 'distutils #2384

Open JeffZurita opened 1 day ago

JeffZurita commented 1 day ago

pip install chatterbot Collecting chatterbot Using cached ChatterBot-1.0.5-py2.py3-none-any.whl.metadata (8.1 kB) Collecting mathparse<0.2,>=0.1 (from chatterbot) Using cached mathparse-0.1.2-py3-none-any.whl.metadata (776 bytes) Collecting nltk<4.0,>=3.2 (from chatterbot) Using cached nltk-3.9.1-py3-none-any.whl.metadata (2.9 kB) Collecting pint>=0.8.1 (from chatterbot) Using cached Pint-0.24.4-py3-none-any.whl.metadata (8.5 kB) Collecting pymongo<4.0,>=3.3 (from chatterbot) Using cached pymongo-3.13.0-cp311-cp311-win_amd64.whl.metadata (9.8 kB) Collecting python-dateutil<2.8,>=2.7 (from chatterbot) Using cached python_dateutil-2.7.5-py2.py3-none-any.whl.metadata (7.5 kB) Collecting pyyaml<5.2,>=5.1 (from chatterbot) Using cached PyYAML-5.1.2.tar.gz (265 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting spacy<2.2,>=2.1 (from chatterbot) Using cached spacy-2.1.9.tar.gz (30.7 MB) Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [51 lines of output] Collecting setuptools Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB) Collecting wheel<0.33.0,>0.32.0 Using cached wheel-0.32.3-py2.py3-none-any.whl.metadata (2.1 kB) Collecting Cython Using cached Cython-3.0.11-cp311-cp311-win_amd64.whl.metadata (3.2 kB) Collecting cymem<2.1.0,>=2.0.2 Using cached cymem-2.0.8-cp311-cp311-win_amd64.whl.metadata (8.6 kB) Collecting preshed<2.1.0,>=2.0.1 Using cached preshed-2.0.1.tar.gz (113 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error

    Getting requirements to build wheel did not run successfully.
    exit code: 1

    [20 lines of output]
    Traceback (most recent call last):
      File "C:\Users\Primus\Documents\Python Scripts\Chatterbot_venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
        main()
      File "C:\Users\Primus\Documents\Python Scripts\Chatterbot_venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\Primus\Documents\Python Scripts\Chatterbot_venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
        return hook(config_settings)
               ^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\Primus\AppData\Local\Temp\pip-build-env-gjleqymb\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
        return self._get_build_requires(config_settings, requirements=[])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\Primus\AppData\Local\Temp\pip-build-env-gjleqymb\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
        self.run_setup()
      File "C:\Users\Primus\AppData\Local\Temp\pip-build-env-gjleqymb\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
        super().run_setup(setup_script=setup_script)
      File "C:\Users\Primus\AppData\Local\Temp\pip-build-env-gjleqymb\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
        exec(code, locals())
      File "<string>", line 9, in <module>
    ImportError: cannot import name 'msvccompiler' from 'distutils' (C:\Users\Primus\AppData\Local\Temp\pip-build-env-gjleqymb\overlay\Lib\site-packages\setuptools\_distutils\__init__.py)
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: subprocess-exited-with-error

  Getting requirements to build wheel did not run successfully.
  exit code: 1

  See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error