Open lkrjangid1 opened 2 years ago
The problem is here:
PS C:\Users\lkrja\Desktop\lkrjangid\yaara> pip install chatterbot Collecting chatterbot Using cached ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB) Collecting spacy<2.2,>=2.1 Using cached spacy-2.1.9.tar.gz (30.7 MB)
You need to delete the cached data files. Make sure the python package index (PyPI or pip) is upgraded to the latest version. Then try pip install chatterbot
again.
The problem is here:
PS C:\Users\lkrja\Desktop\lkrjangid\yaara> pip install chatterbot Collecting chatterbot Using cached ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB) Collecting spacy<2.2,>=2.1 Using cached spacy-2.1.9.tar.gz (30.7 MB)
You need to delete the cached data files. Make sure the python package index (PyPI or pip) is upgraded to the latest version. Then try
pip install chatterbot
again.
C:\Users\lkrja\Desktop\lkrjangid\yaara>pip --no-cache-dir install chatterbot
Collecting chatterbot
Downloading ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB)
---------------------------------------- 67.8/67.8 KB 1.9 MB/s eta 0:00:00
Collecting spacy<2.2,>=2.1
Downloading spacy-2.1.9.tar.gz (30.7 MB)
---------------------------------------- 30.7/30.7 MB 3.3 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [101 lines of output]
Collecting setuptools
Using cached setuptools-62.0.0-py3-none-any.whl (1.1 MB)
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.28-py2.py3-none-any.whl (983 kB)
Collecting cymem<2.1.0,>=2.0.2
Using cached cymem-2.0.6-cp310-cp310-win_amd64.whl (36 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.6-cp310-cp310-win_amd64.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
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
Using cached wasabi-0.9.1-py3-none-any.whl (26 kB)
Collecting srsly<1.1.0,>=0.0.6
Using cached srsly-1.0.5-cp310-cp310-win_amd64.whl
Collecting numpy>=1.7.0
Using cached numpy-1.22.3-cp310-cp310-win_amd64.whl (14.7 MB)
Collecting plac<1.0.0,>=0.9.6
Using cached plac-0.9.6-py2.py3-none-any.whl (20 kB)
Collecting tqdm<5.0.0,>=4.10.0
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Using legacy 'setup.py install' for preshed, since package 'wheel' is not installed.
Using legacy 'setup.py install' for thinc, since package 'wheel' is not installed.
Using legacy 'setup.py install' for blis, since package 'wheel' is not installed.
Installing collected packages: wasabi, srsly, plac, murmurhash, cymem, wheel, setuptools, preshed, numpy, Cython, colorama, tqdm, blis, thinc
Running setup.py install for preshed: started
Running setup.py install for preshed: finished with status 'error'
error: subprocess-exited-with-error
Running setup.py install for preshed did not run successfully.
exit code: 1
[44 lines of output]
WARNING: The wheel package is not available.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\preshed
copying preshed\about.py -> build\lib.win-amd64-3.10\preshed
copying preshed\__init__.py -> build\lib.win-amd64-3.10\preshed
creating build\lib.win-amd64-3.10\preshed\tests
copying preshed\tests\test_counter.py -> build\lib.win-amd64-3.10\preshed\tests
copying preshed\tests\test_hashing.py -> build\lib.win-amd64-3.10\preshed\tests
copying preshed\tests\test_pop.py -> build\lib.win-amd64-3.10\preshed\tests
copying preshed\tests\__init__.py -> build\lib.win-amd64-3.10\preshed\tests
copying preshed\counter.pyx -> build\lib.win-amd64-3.10\preshed
copying preshed\maps.pyx -> build\lib.win-amd64-3.10\preshed
copying preshed\counter.pxd -> build\lib.win-amd64-3.10\preshed
copying preshed\maps.pxd -> build\lib.win-amd64-3.10\preshed
copying preshed\__init__.pxd -> build\lib.win-amd64-3.10\preshed
running build_ext
building 'preshed.maps' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\preshed
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /EHsc /Tppreshed/maps.cpp /Fobuild\temp.win-amd64-3.10\Release\preshed/maps.obj /Ox /EHsc
maps.cpp
preshed/maps.cpp(5728): error C2039: 'tp_print': is not a member of '_typeobject'
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
preshed/maps.cpp(5740): error C2039: 'tp_print': is not a member of '_typeobject'
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
preshed/maps.cpp(5749): error C2039: 'tp_print': is not a member of '_typeobject'
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
preshed/maps.cpp(5755): error C2039: 'tp_print': is not a member of '_typeobject'
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
preshed/maps.cpp(5761): error C2039: 'tp_print': is not a member of '_typeobject'
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
preshed/maps.cpp(5767): error C2039: 'tp_print': is not a member of '_typeobject'
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject'
preshed/maps.cpp(6129): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
preshed/maps.cpp(6145): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
preshed/maps.cpp(8447): error C3861: '_PyGen_Send': identifier not found
preshed/maps.cpp(8452): error C3861: '_PyGen_Send': identifier not found
preshed/maps.cpp(8536): error C3861: '_PyGen_Send': identifier not found
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\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
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[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.
Try pip --use-deprecated install chatterbot
if that does not work.
Then download the source tar.gz file and unload that: https://pypi.org/project/ChatterBot/#files.
Try
pip --use-deprecated install chatterbot
if that does not work. Then download the source tar.gz file and unload that: https://pypi.org/project/ChatterBot/#files.
C:\Users\lkrja\Desktop\lkrjangid\yaara>pip --use-deprecated install chatterbot
Usage:
C:\Users\lkrja\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -m pip <command> [options]
option --use-deprecated: invalid choice: 'install' (choose from 'legacy-resolver', 'out-of-tree-build', 'backtrack-on-build-failures', 'html5lib')
Try this instead pip install chatterbot --use-deprecated=backtrack-on-build-failures
should work.
Isn't that just incompatibility with python 3.10?
If we will get more into details (installing from source) it shows this ERROR: Package 'chatterbot' requires a different Python: 3.10.0 not in '<=3.8,>=3.4'
(If you'll change it, it will be installed sucessfully, but won't work)
I submitted a pull request with the working fix. Just waiting for approval.
Is it working? Bc when I did the same thing on my pc it gave me an error in demo
pip install chatterbot==1.0.4
This will work
The problem is here:
PS C:\Users\lkrja\Desktop\lkrjangid\yaara> pip install chatterbot Collecting chatterbot Using cached ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB) Collecting spacy<2.2,>=2.1 Using cached spacy-2.1.9.tar.gz (30.7 MB)
You need to delete the cached data files. Make sure the python package index (PyPI or pip) is upgraded to the latest version. Then trypip install chatterbot
again.C:\Users\lkrja\Desktop\lkrjangid\yaara>pip --no-cache-dir install chatterbot Collecting chatterbot Downloading ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB) ---------------------------------------- 67.8/67.8 KB 1.9 MB/s eta 0:00:00 Collecting spacy<2.2,>=2.1 Downloading spacy-2.1.9.tar.gz (30.7 MB) ---------------------------------------- 30.7/30.7 MB 3.3 MB/s eta 0:00:00 Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [101 lines of output] Collecting setuptools Using cached setuptools-62.0.0-py3-none-any.whl (1.1 MB) 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.28-py2.py3-none-any.whl (983 kB) Collecting cymem<2.1.0,>=2.0.2 Using cached cymem-2.0.6-cp310-cp310-win_amd64.whl (36 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.6-cp310-cp310-win_amd64.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 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 Using cached wasabi-0.9.1-py3-none-any.whl (26 kB) Collecting srsly<1.1.0,>=0.0.6 Using cached srsly-1.0.5-cp310-cp310-win_amd64.whl Collecting numpy>=1.7.0 Using cached numpy-1.22.3-cp310-cp310-win_amd64.whl (14.7 MB) Collecting plac<1.0.0,>=0.9.6 Using cached plac-0.9.6-py2.py3-none-any.whl (20 kB) Collecting tqdm<5.0.0,>=4.10.0 Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB) Collecting colorama Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) Using legacy 'setup.py install' for preshed, since package 'wheel' is not installed. Using legacy 'setup.py install' for thinc, since package 'wheel' is not installed. Using legacy 'setup.py install' for blis, since package 'wheel' is not installed. Installing collected packages: wasabi, srsly, plac, murmurhash, cymem, wheel, setuptools, preshed, numpy, Cython, colorama, tqdm, blis, thinc Running setup.py install for preshed: started Running setup.py install for preshed: finished with status 'error' error: subprocess-exited-with-error Running setup.py install for preshed did not run successfully. exit code: 1 [44 lines of output] WARNING: The wheel package is not available. running install running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\preshed copying preshed\about.py -> build\lib.win-amd64-3.10\preshed copying preshed\__init__.py -> build\lib.win-amd64-3.10\preshed creating build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_counter.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_hashing.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_pop.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\__init__.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\counter.pyx -> build\lib.win-amd64-3.10\preshed copying preshed\maps.pyx -> build\lib.win-amd64-3.10\preshed copying preshed\counter.pxd -> build\lib.win-amd64-3.10\preshed copying preshed\maps.pxd -> build\lib.win-amd64-3.10\preshed copying preshed\__init__.pxd -> build\lib.win-amd64-3.10\preshed running build_ext building 'preshed.maps' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\preshed C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /EHsc /Tppreshed/maps.cpp /Fobuild\temp.win-amd64-3.10\Release\preshed/maps.obj /Ox /EHsc maps.cpp preshed/maps.cpp(5728): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5740): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5749): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5755): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5761): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5767): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(6129): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3 preshed/maps.cpp(6145): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3 preshed/maps.cpp(8447): error C3861: '_PyGen_Send': identifier not found preshed/maps.cpp(8452): error C3861: '_PyGen_Send': identifier not found preshed/maps.cpp(8536): error C3861: '_PyGen_Send': identifier not found error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\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 note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. [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.
how you solve this?
PS C:\Users\lkrja\Desktop\lkrjangid\yaara> pip install chatterbot Collecting chatterbot Using cached ChatterBot-1.0.5-py2.py3-none-any.whl (67 kB) Collecting spacy<2.2,>=2.1 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 ╰─> [79 lines of output] Collecting setuptools Using cached setuptools-61.1.0-py3-none-any.whl (1.1 MB) 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.28-py2.py3-none-any.whl (983 kB) Collecting cymem<2.1.0,>=2.0.2 Using cached cymem-2.0.6-cp310-cp310-win_amd64.whl (36 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.6-cp310-cp310-win_amd64.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 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 Using cached wasabi-0.9.0-py3-none-any.whl (25 kB) Collecting srsly<1.1.0,>=0.0.6 Using cached srsly-1.0.5-cp310-cp310-win_amd64.whl Collecting numpy>=1.7.0 Using cached numpy-1.22.3-cp310-cp310-win_amd64.whl (14.7 MB) Collecting plac<1.0.0,>=0.9.6 Using cached plac-0.9.6-py2.py3-none-any.whl (20 kB) Collecting tqdm<5.0.0,>=4.10.0 Using cached tqdm-4.63.1-py2.py3-none-any.whl (76 kB) Collecting colorama Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) Using legacy 'setup.py install' for preshed, since package 'wheel' is not installed. Using legacy 'setup.py install' for thinc, since package 'wheel' is not installed. Using legacy 'setup.py install' for blis, since package 'wheel' is not installed. Installing collected packages: wasabi, srsly, plac, murmurhash, cymem, wheel, setuptools, preshed, numpy, Cython, colorama, tqdm, blis, thinc Running setup.py install for preshed: started Running setup.py install for preshed: finished with status 'error' error: subprocess-exited-with-error Running setup.py install for preshed did not run successfully. exit code: 1 [22 lines of output] WARNING: The wheel package is not available. running install running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\preshed copying preshed\about.py -> build\lib.win-amd64-3.10\preshed copying preshed\__init__.py -> build\lib.win-amd64-3.10\preshed creating build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_counter.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_hashing.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_pop.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\__init__.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\counter.pyx -> build\lib.win-amd64-3.10\preshed copying preshed\maps.pyx -> build\lib.win-amd64-3.10\preshed copying preshed\counter.pxd -> build\lib.win-amd64-3.10\preshed copying preshed\maps.pxd -> build\lib.win-amd64-3.10\preshed copying preshed\__init__.pxd -> build\lib.win-amd64-3.10\preshed running build_ext building 'preshed.maps' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [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 Collecting python-dateutil<2.8,>=2.7 Using cached python_dateutil-2.7.5-py2.py3-none-any.whl (225 kB) Collecting pyyaml<5.2,>=5.1 Using cached PyYAML-5.1.2.tar.gz (265 kB) Preparing metadata (setup.py) ... done Collecting spacy<2.2,>=2.1 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 ╰─> [101 lines of output] Collecting setuptools Using cached setuptools-61.1.0-py3-none-any.whl (1.1 MB) 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.28-py2.py3-none-any.whl (983 kB) Collecting cymem<2.1.0,>=2.0.2 Using cached cymem-2.0.6-cp310-cp310-win_amd64.whl (36 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.6-cp310-cp310-win_amd64.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 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 Using cached wasabi-0.9.0-py3-none-any.whl (25 kB) Collecting srsly<1.1.0,>=0.0.6 Using cached srsly-1.0.5-cp310-cp310-win_amd64.whl Collecting numpy>=1.7.0 Using cached numpy-1.22.3-cp310-cp310-win_amd64.whl (14.7 MB) Collecting plac<1.0.0,>=0.9.6 Using cached plac-0.9.6-py2.py3-none-any.whl (20 kB) Collecting tqdm<5.0.0,>=4.10.0 Using cached tqdm-4.63.1-py2.py3-none-any.whl (76 kB) Collecting colorama Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB) Using legacy 'setup.py install' for preshed, since package 'wheel' is not installed. Using legacy 'setup.py install' for thinc, since package 'wheel' is not installed. Using legacy 'setup.py install' for blis, since package 'wheel' is not installed. Installing collected packages: wasabi, srsly, plac, murmurhash, cymem, wheel, setuptools, preshed, numpy, Cython, colorama, tqdm, blis, thinc Running setup.py install for preshed: started Running setup.py install for preshed: finished with status 'error' error: subprocess-exited-with-error Running setup.py install for preshed did not run successfully. exit code: 1 [44 lines of output] WARNING: The wheel package is not available. running install running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\preshed copying preshed\about.py -> build\lib.win-amd64-3.10\preshed copying preshed\__init__.py -> build\lib.win-amd64-3.10\preshed creating build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_counter.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_hashing.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\test_pop.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\tests\__init__.py -> build\lib.win-amd64-3.10\preshed\tests copying preshed\counter.pyx -> build\lib.win-amd64-3.10\preshed copying preshed\maps.pyx -> build\lib.win-amd64-3.10\preshed copying preshed\counter.pxd -> build\lib.win-amd64-3.10\preshed copying preshed\maps.pxd -> build\lib.win-amd64-3.10\preshed copying preshed\__init__.pxd -> build\lib.win-amd64-3.10\preshed running build_ext building 'preshed.maps' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\preshed C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /EHsc /Tppreshed/maps.cpp /Fobuild\temp.win-amd64-3.10\Release\preshed/maps.obj /Ox /EHsc maps.cpp preshed/maps.cpp(5728): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5740): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5749): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5755): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5761): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(5767): error C2039: 'tp_print': is not a member of '_typeobject' C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1264.0_x64__qbz5n2kfra8p0\include\cpython/object.h(191): note: see declaration of '_typeobject' preshed/maps.cpp(6129): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3 preshed/maps.cpp(6145): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3 preshed/maps.cpp(8447): error C3861: '_PyGen_Send': identifier not found preshed/maps.cpp(8452): error C3861: '_PyGen_Send': identifier not found preshed/maps.cpp(8536): error C3861: '_PyGen_Send': identifier not found error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\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 note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. [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.
bro, i had the same problem and i searched two days for error, found nothing. But i uninstalled python 3.8.9 and installed python 3.7.9, so now every thing works fine