pythondjangovisual-studio-codespacychatterbot

installing chatterbot it raise spacy installation error in python- pip install chatterbot - not working


Ii have installed latest Redistributable Microsoft C++ and upgraded my pip but not resolved...anyone please give solution

`pip install chatterbot`


        preshed/maps.cpp(181): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory

        **error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
        [end of output]**
    
        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: legacy-install-failure
    
      Encountered error while trying to install package.
    
      preshed
    
`
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─\> See above for output.`

Solution

  • It seems that the chatterbot package no longer supports the new version of Python. You can download and install Python38 or python37 or earlier versions to use the chatterbot package.

    https://www.python.org/downloads/windows/

    After testing, I successfully installed the chatterbot package with python 3.8.0 and python 3.7.9.

    enter image description here