Lỗi không thể pip install chatterbot trong python

chào mọi người, Mình đang làm chatbot bằng python theo hướng dẫn: https://codelearn.io/sharing/huong-dan-lap-trinh-chatbot-voi-python
mình làm theo thì đến bước pip thư viện chatterbot thì bị lỗi mình tìm hiểu thì là do nó yêu cầu cymem >= 2.0.2, mình đã install nó cymem==2.0.2 nhưng hiên tại nó gặp lỗi như hình, xin mọi người giúp đỡ ạ !!!

Mình cài bình thường mà, có bị gì đâu.
P/s: khuyến khích nên dùng virtual environment tránh xung đột với global

CMD Logs C:\Users\nguye\Desktop\New folder (2)>venv\Scripts\activate.bat (venv) C:\Users\nguye\Desktop\New folder (2)>pip install chatterbot Collecting chatterbot Downloading https://files.pythonhosted.org/packages/12/b7/d8a034fbef04cb50fc7a9f5c6b6d27f1db186ffd58f66d7301e16abfd9ca/ChatterBot-1.1.0-py2.py3-none-any.whl (63kB) 100% |████████████████████████████████| 71kB 2.5MB/s Collecting pyyaml<5.4,>=5.3 (from chatterbot) Downloading https://files.pythonhosted.org/packages/61/5e/0386f8d74ce6e0a183b93a7e02d32b2629c0a2c8e9db806a3f5eebbfa221/PyYAML-5.3.1-cp36-cp36m-win_amd64.whl (215kB) 100% |████████████████████████████████| 225kB 4.3MB/s Collecting nltk<4.0,>=3.2 (from chatterbot) Downloading https://files.pythonhosted.org/packages/8c/1c/c0981ef85165eb739c10f2b24d7729cef066b2bc220fbd1dd0d3c67df39a/nltk-3.6.1-py3-none-any.whl (1.5MB) 100% |████████████████████████████████| 1.5MB 1.0MB/s Collecting spacy<2.2,>=2.1 (from chatterbot) Downloading https://files.pythonhosted.org/packages/2b/ab/50176fd117ef88b3a8fc20bc6c83d32077f335d75a000ecab510f1ccf8ac/spacy-2.1.9-cp36-cp36m-win_amd64.whl (30.0MB) 100% |████████████████████████████████| 30.0MB 55kB/s Collecting sqlalchemy<1.4,>=1.3 (from chatterbot) Downloading https://files.pythonhosted.org/packages/95/b8/bd550adc9b32860a26e1e1eaa39d122e515bfee3330be2a57016ddb4305f/SQLAlchemy-1.3.24-cp36-cp36m-win_amd64.whl (1.2MB) 100% |████████████████████████████████| 1.2MB 1.1MB/s Collecting pytz (from chatterbot) Using cached https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl Collecting pint>=0.8.1 (from chatterbot) Downloading https://files.pythonhosted.org/packages/33/de/53a77b82553579affab7438d299f850acbc1c4dd741c5ce52594513cb0ef/Pint-0.17-py2.py3-none-any.whl (204kB) 100% |████████████████████████████████| 215kB 3.3MB/s Collecting mathparse<0.2,>=0.1 (from chatterbot) Downloading https://files.pythonhosted.org/packages/c3/e5/4910fb85950cb960fcf3f5aabe1c8e55f5c9201788a1c1302b570a7e1f84/mathparse-0.1.2-py3-none-any.whl Collecting python-dateutil<2.9,>=2.8 (from chatterbot) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB) 100% |████████████████████████████████| 235kB 3.4MB/s Collecting tqdm (from nltk<4.0,>=3.2->chatterbot) Downloading https://files.pythonhosted.org/packages/72/8a/34efae5cf9924328a8f34eeb2fdaae14c011462d9f0e3fcded48e1266d1c/tqdm-4.60.0-py2.py3-none-any.whl (75kB) 100% |████████████████████████████████| 81kB 5.1MB/s Collecting click (from nltk<4.0,>=3.2->chatterbot) Using cached https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl Collecting joblib (from nltk<4.0,>=3.2->chatterbot) Downloading https://files.pythonhosted.org/packages/55/85/70c6602b078bd9e6f3da4f467047e906525c355a4dacd4f71b97a35d9897/joblib-1.0.1-py3-none-any.whl (303kB) 100% |████████████████████████████████| 307kB 2.9MB/s Collecting regex (from nltk<4.0,>=3.2->chatterbot) Downloading https://files.pythonhosted.org/packages/0e/c9/ba4a0ef1bec2040a8426336cdebd2fc12ae771232022cb6f56cf512e58d8/regex-2021.4.4-cp36-cp36m-win_amd64.whl (269kB) 100% |████████████████████████████████| 276kB 3.1MB/s Collecting cymem<2.1.0,>=2.0.2 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/ff/32/363ecc81d058387028e59f4c39e3e469a546f1ba597b3f4d1211a2442741/cymem-2.0.5-cp36-cp36m-win_amd64.whl Collecting requests<3.0.0,>=2.13.0 (from spacy<2.2,>=2.1->chatterbot) Using cached https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl Collecting numpy>=1.15.0 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/ea/bc/da526221bc111857c7ef39c3af670bbcf5e69c247b0d22e51986f6d0c5c2/numpy-1.19.5-cp36-cp36m-win_amd64.whl (13.2MB) 100% |████████████████████████████████| 13.2MB 121kB/s Collecting blis<0.3.0,>=0.2.2 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/84/0e/35f8ce00fc3412aa3a888a3d8e040c4c65ccbad8310aa2981d3e6f379867/blis-0.2.4-cp36-cp36m-win_amd64.whl (3.1MB) 100% |████████████████████████████████| 3.1MB 513kB/s Collecting plac<1.0.0,>=0.9.6 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/9e/9b/62c60d2f5bc135d2aa1d8c8a86aaf84edb719a59c7f11a4316259e61a298/plac-0.9.6-py2.py3-none-any.whl Collecting preshed<2.1.0,>=2.0.1 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/a6/c0/3c238c146ed72f92a1cc3771fa3f66091b80d2a8e15b7c987912443b7843/preshed-2.0.1-cp36-cp36m-win_amd64.whl (73kB) 100% |████████████████████████████████| 81kB 6.9MB/s Collecting srsly<1.1.0,>=0.0.6 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/a9/fb/1c384843d66a33d2d32d25c4aca0c101dc71bf716275a97b2a154c83fa73/srsly-1.0.5-cp36-cp36m-win_amd64.whl (176kB) 100% |████████████████████████████████| 184kB 4.5MB/s Collecting wasabi<1.1.0,>=0.2.0 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/a6/1d/d281571b4c3b20fff183b485c6673c62878727119a849c7932651a8b5060/wasabi-0.8.2-py3-none-any.whl Collecting thinc<7.1.0,>=7.0.8 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/b3/36/e3b2463898dc459201ff3c46dfb7add0f7f300e4bcc7f5823552f7531c80/thinc-7.0.8-cp36-cp36m-win_amd64.whl (1.9MB) 100% |████████████████████████████████| 1.9MB 766kB/s Collecting murmurhash<1.1.0,>=0.28.0 (from spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/91/7d/fe2eb26c98252fae17a9052364e71b7215691a68fc887d78e31ddec5ba0d/murmurhash-1.0.5-cp36-cp36m-win_amd64.whl Collecting packaging (from pint>=0.8.1->chatterbot) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl (40kB) 100% |████████████████████████████████| 40kB 8.3MB/s Collecting importlib-metadata; python_version < "3.8" (from pint>=0.8.1->chatterbot) Using cached https://files.pythonhosted.org/packages/99/8f/b0ac918b2234848ec5bd2a887d2be7d6686355fcb22d7a0efe878d5c1555/importlib_metadata-3.10.0-py3-none-any.whl Collecting importlib-resources; python_version < "3.7" (from pint>=0.8.1->chatterbot) Downloading https://files.pythonhosted.org/packages/f0/5e/69e6a0602c1f18d390952177de648468c4a380252858b0022affc3ce7811/importlib_resources-5.1.2-py3-none-any.whl Collecting six>=1.5 (from python-dateutil<2.9,>=2.8->chatterbot) Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl Collecting chardet<5,>=3.0.2 (from requests<3.0.0,>=2.13.0->spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB) 100% |████████████████████████████████| 184kB 4.3MB/s Collecting idna<3,>=2.5 (from requests<3.0.0,>=2.13.0->spacy<2.2,>=2.1->chatterbot) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB) 100% |████████████████████████████████| 61kB 6.8MB/s Collecting urllib3<1.27,>=1.21.1 (from requests<3.0.0,>=2.13.0->spacy<2.2,>=2.1->chatterbot) Downloading https://files.pythonhosted.org/packages/09/c6/d3e3abe5b4f4f16cf0dfc9240ab7ce10c2baa0e268989a4e3ec19e90c84e/urllib3-1.26.4-py2.py3-none-any.whl (153kB) 100% |████████████████████████████████| 153kB 5.1MB/s Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.13.0->spacy<2.2,>=2.1->chatterbot) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl (147kB) 100% |████████████████████████████████| 153kB 5.1MB/s Collecting pyparsing>=2.0.2 (from packaging->pint>=0.8.1->chatterbot) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB) 100% |████████████████████████████████| 71kB 7.2MB/s

Collecting zipp>=0.5 (from importlib-metadata; python_version < “3.8”->pint>=0.8.1->chatterbot)

Using cached https://files.pythonhosted.org/packages/0f/8c/715c54e9e34c0c4820f616a913a7de3337d0cd79074dd1bed4dd840f16ae/zipp-3.4.1-py3-none-any.whl
Collecting typing-extensions>=3.6.4; python_version < “3.8” (from importlib-metadata; python_version < “3.8”->pint>=0.8.1->chatterbot)
Using cached https://files.pythonhosted.org/packages/60/7a/e881b5abb54db0e6e671ab088d079c57ce54e8a01a3ca443f561ccadb37e/typing_extensions-3.7.4.3-py3-none-any.whl Installing collected packages: pyyaml, tqdm, click, joblib, regex, nltk, cymem, chardet, idna, urllib3, certifi, requests, numpy, blis, plac, preshed, srsly, wasabi, murmurhash, thinc, spacy, sqlalchemy, pytz, pyparsing, packaging, zipp, typing-extensions, importlib-metadata, importlib-resources, pint, mathparse, six, python-dateutil, chatterbot
Successfully installed blis-0.2.4 certifi-2020.12.5 chardet-4.0.0 chatterbot-1.1.0 click-7.1.2 cymem-2.0.5 idna-2.10 importlib-metadata-3.10.0 importlib-resources-5.1.2 joblib-1.0.1 mathparse-0.1.2 murmurhash-1.0.5 nltk-3.6.1 numpy-1.19.5 packaging-20.9 pint-0.17 plac-0.9.6 preshed-2.0.1 pyparsing-2.4.7 python-dateutil-2.8.1 pytz-2021.1 pyyaml-5.3.1 regex-2021.4.4 requests-2.25.1 six-1.15.0 spacy-2.1.9 sqlalchemy-1.3.24 srsly-1.0.5 thinc-7.0.8 tqdm-4.60.0 typing-extensions-3.7.4.3 urllib3-1.26.4 wasabi-0.8.2 zipp-3.4.1
You are using pip version 9.0.1, however version 21.0.1 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.

Trường hợp trên là do mình đang xung đột với global à bạn

Cũng có thể lắm chớ. Đôi khi còn do phiên bản python nữa. Mình đang dùng python 3.6 nhé

1 Like

cũng có thể do phiên bản python thật mình đang dùng 3.9, mình cảm ơn b nhé

Nâng cấp pip
Upgrade pip

mình cũng đang học làm cái này nhưng lúc mình cài đặt chatterbot bị lỗi khác bạn.

mình cũng bị giống vậy bạn đá khắc phục được chưa ạ

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?