So, to give you a idea of the problem, I want to create AI with python. So I wanted to install chatterbot to help me create AI with Python. Now, when I go installing chatterbot, I get this error message:
"Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [114 lines of output]
Collecting setuptools
Using cached setuptools-69.5.1-py3-none-any.whl.metadata (6.2 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.10-cp312-cp312-win_amd64.whl.metadata (3.2 kB)
Collecting cymem<2.1.0,>=2.0.2
Using cached cymem-2.0.8-cp312-cp312-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 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[79 lines of output]
running dist_info
creating C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed.egg-info
writing C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed.egg-info\PKG-INFO
writing dependency_links to C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed.egg-info\dependency_links.txt
writing requirements to C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed.egg-info\requires.txt
writing top-level names to C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed.egg-info\top_level.txt
writing manifest file 'C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed.egg-info\SOURCES.txt'
creating 'C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-modern-metadata-63ny29ze\preshed-2.0.1.dist-info'
Traceback (most recent call last):
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\normal\Lib\site-packages\wheel\pep425tags.py", line 10, in <module>
from importlib.machinery import get_all_suffixes
ImportError: cannot import name 'get_all_suffixes' from 'importlib.machinery' (C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Programs\Python\Python312\Lib\importlib\machinery.py). Did you mean: 'all_suffixes'?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Programs\Python\Python312\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\rayan.RAYANFAMILYCOMP\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\build_meta.py", line 366, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 149, in <module>
File "<string>", line 114, in setup_package
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 200, in run_commands
dist.run_commands()
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\dist.py", line 967, in run_command
super().run_command(command)
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\command\dist_info.py", line 97, in run
bdist_wheel = self.get_finalized_command('bdist_wheel')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 302, in get_finalized_command
cmd_obj = self.distribution.get_command_obj(command, create)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 861, in get_command_obj
klass = self.get_command_class(command)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\overlay\Lib\site-packages\setuptools\dist.py", line 714, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
^^^^^^^^^
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Programs\Python\Python312\Lib\importlib\metadata\__init__.py", line 205, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\normal\Lib\site-packages\wheel\bdist_wheel.py", line 21, in <module>
from .pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag, get_platform
File "C:\Users\rayan.RAYANFAMILYCOMP\AppData\Local\Temp\pip-build-env-0u0x5mo6\normal\Lib\site-packages\wheel\pep425tags.py", line 12, in <module>
from imp import get_suffixes as get_all_suffixes
ModuleNotFoundError: No module named 'imp'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies 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."
Can you please help me fix this?