I’m not able to install rasa. It’s throwing an error every time I’m trying to run pip3 install rasa, it throws an error when it comes to downloading tensorflow part. How can I fix this?
The Error:-
pip3 install rasa
Collecting rasa
Downloading rasa-3.1.0-py3-none-any.whl (813 kB)
---------------------------------------- 813.4/813.4 KB 17.0 kB/s eta 0:00:00
Collecting sanic-routing<0.8.0,>=0.7.2
Downloading sanic_routing-0.7.2-py3-none-any.whl (23 kB)
Collecting pytz<2022.0,>=2019.1
Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB)
---------------------------------------- 503.5/503.5 KB 16.2 kB/s eta 0:00:00
Collecting tensorflow-addons<0.16.0,>=0.15.0
Downloading tensorflow_addons-0.15.0-cp38-cp38-win_amd64.whl (753 kB)
---------------------------------------- 753.3/753.3 KB 14.3 kB/s eta 0:00:00
Collecting numpy<1.20.0,>=1.19.2
Downloading numpy-1.19.5-cp38-cp38-win_amd64.whl (13.3 MB)
---------------------------------------- 13.3/13.3 MB 25.0 kB/s eta 0:00:00
Collecting prompt-toolkit<3.0,>=2.0
Downloading prompt_toolkit-2.0.10-py3-none-any.whl (340 kB)
---------------------------------------- 340.0/340.0 KB 22.7 kB/s eta 0:00:00
Collecting dask==2021.11.2
Downloading dask-2021.11.2-py3-none-any.whl (1.0 MB)
---------------------------------------- 1.0/1.0 MB 13.9 kB/s eta 0:00:00
Collecting redis<4.0,>=3.4
Downloading redis-3.5.3-py2.py3-none-any.whl (72 kB)
---------------------------------------- 72.1/72.1 KB 21.4 kB/s eta 0:00:00
Collecting cloudpickle<1.7,>=1.2
Downloading cloudpickle-1.6.0-py3-none-any.whl (23 kB)
Requirement already satisfied: setuptools>=41.0.0 in c:\users\riaz\desktop\venv\lib\site-packages (from rasa) (56.0.0)
Collecting async_generator<1.11,>=1.10
Downloading async_generator-1.10-py3-none-any.whl (18 kB)
Collecting SQLAlchemy<1.5.0,>=1.4.0
Downloading SQLAlchemy-1.4.36-cp38-cp38-win_amd64.whl (1.6 MB)
---------------------------------------- 1.6/1.6 MB 27.9 kB/s eta 0:00:00
Collecting webexteamssdk<1.7.0,>=1.1.1
Downloading webexteamssdk-1.6-py3-none-any.whl (113 kB)
---------------------------------------- 113.3/113.3 KB 9.8 kB/s eta 0:00:00
Collecting sanic-cors<3.0.0,>=2.0.0
Downloading Sanic_Cors-2.0.1-py2.py3-none-any.whl (17 kB)
Collecting networkx<2.7,>=2.4
Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB)
---------------------------------------- 1.9/1.9 MB 18.3 kB/s eta 0:00:00
Collecting tarsafe<0.0.4,>=0.0.3
Downloading tarsafe-0.0.3-py3-none-any.whl (5.0 kB)
Collecting sklearn-crfsuite<0.4,>=0.3
Downloading sklearn_crfsuite-0.3.6-py2.py3-none-any.whl (12 kB)
Collecting kafka-python<3.0,>=1.4
Downloading kafka_python-2.0.2-py2.py3-none-any.whl (246 kB)
---------------------------------------- 246.5/246.5 KB 56.2 kB/s eta 0:00:00
Collecting google-auth<2
Downloading google_auth-1.35.0-py2.py3-none-any.whl (152 kB)
---------------------------------------- 152.9/152.9 KB 11.3 kB/s eta 0:00:00
Collecting attrs<21.3,>=19.3
Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
---------------------------------------- 53.7/53.7 KB 14.3 kB/s eta 0:00:00
Collecting boto3<2.0,>=1.12
Downloading boto3-1.22.7-py3-none-any.whl (132 kB)
---------------------------------------- 132.5/132.5 KB 23.5 kB/s eta 0:00:00
Collecting jsonpickle<2.1,>=1.3
Downloading jsonpickle-2.0.0-py2.py3-none-any.whl (37 kB)
Collecting packaging<21.0,>=20.0
Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
---------------------------------------- 40.9/40.9 KB 26.8 kB/s eta 0:00:00
Collecting python-socketio<6,>=4.4
Downloading python_socketio-5.6.0-py3-none-any.whl (56 kB)
---------------------------------------- 56.2/56.2 KB 15.7 kB/s eta 0:00:00
Collecting pyTelegramBotAPI<4.0.0,>=3.7.3
Downloading pyTelegramBotAPI-3.8.3.tar.gz (104 kB)
---------------------------------------- 104.8/104.8 KB 31.8 kB/s eta 0:00:00
Preparing metadata (setup.py) … done
Collecting jsonschema<3.3,>=3.2
Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
---------------------------------------- 56.3/56.3 KB 37.8 kB/s eta 0:00:00
Collecting scipy<2.0.0,>=1.4.1
Downloading scipy-1.8.0-cp38-cp38-win_amd64.whl (36.9 MB)
---------------------------------------- 36.9/36.9 MB 13.7 kB/s eta 0:00:00
Collecting colorama<0.5.0,>=0.4.4
Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting PyJWT[crypto]<3.0.0,>=2.0.0
Downloading PyJWT-2.3.0-py3-none-any.whl (16 kB)
Collecting CacheControl<0.13.0,>=0.12.9
Downloading CacheControl-0.12.11-py2.py3-none-any.whl (21 kB)
Collecting pykwalify<1.9,>=1.7
Downloading pykwalify-1.8.0-py2.py3-none-any.whl (24 kB)
Collecting colorclass<2.3,>=2.2
Downloading colorclass-2.2.2-py2.py3-none-any.whl (18 kB)
Collecting pymongo[srv,tls]<3.11,>=3.8
Downloading pymongo-3.10.1-cp38-cp38-win_amd64.whl (355 kB)
---------------------------------------- 355.2/355.2 KB 11.9 kB/s eta 0:00:00
Collecting sanic<21.13,>=21.12
Downloading sanic-21.12.1-py3-none-any.whl (139 kB)
---------------------------------------- 139.7/139.7 KB 16.0 kB/s eta 0:00:00
Collecting requests<3.0,>=2.23
Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
---------------------------------------- 63.1/63.1 KB 16.4 kB/s eta 0:00:00
Collecting mattermostwrapper<2.3,>=2.2
Downloading mattermostwrapper-2.2.tar.gz (2.5 kB)
Preparing metadata (setup.py) … done
Collecting randomname<0.2.0,>=0.1.5
Downloading randomname-0.1.5.tar.gz (36 kB)
Preparing metadata (setup.py) … done
Collecting typing-extensions<4.0.0,>=3.7.4
Downloading typing_extensions-3.10.0.2-py3-none-any.whl (26 kB)
Collecting joblib<1.1.0,>=0.15.1
Downloading joblib-1.0.1-py3-none-any.whl (303 kB)
---------------------------------------- 303.1/303.1 KB 16.4 kB/s eta 0:00:00
Collecting absl-py<0.14,>=0.9
Downloading absl_py-0.13.0-py3-none-any.whl (132 kB)
---------------------------------------- 132.1/132.1 KB 34.0 kB/s eta 0:00:00
Collecting regex<2021.9,>=2020.6
Downloading regex-2021.8.28-cp38-cp38-win_amd64.whl (271 kB)
---------------------------------------- 271.1/271.1 KB 24.1 kB/s eta 0:00:00
Collecting typing-utils<0.2.0,>=0.1.0
Downloading typing_utils-0.1.0-py3-none-any.whl (10 kB)
Collecting colorhash<1.1.0,>=1.0.2
Downloading colorhash-1.0.4-py3-none-any.whl (5.5 kB)
Collecting ruamel.yaml<0.17.0,>=0.16.5
Downloading ruamel.yaml-0.16.13-py2.py3-none-any.whl (111 kB)
---------------------------------------- 111.9/111.9 KB 17.6 kB/s eta 0:00:00
Collecting questionary<1.11.0,>=1.5.1
Downloading questionary-1.10.0-py3-none-any.whl (31 kB)
Collecting tqdm<5.0,>=4.31
Downloading tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
---------------------------------------- 78.4/78.4 KB 29.3 kB/s eta 0:00:00
Collecting psycopg2-binary<2.10.0,>=2.8.2
Downloading psycopg2_binary-2.9.3-cp38-cp38-win_amd64.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 20.3 kB/s eta 0:00:00
Collecting sanic-jwt<2.0.0,>=1.6.0
Downloading sanic_jwt-1.7.0-py3-none-any.whl (23 kB)
Collecting python-engineio!=5.0.0,<6,>=4
Downloading python_engineio-4.3.2-py3-none-any.whl (52 kB)
---------------------------------------- 52.7/52.7 KB 11.6 kB/s eta 0:00:00
Collecting tensorflow<2.8.0,>=2.7.0
Downloading tensorflow-2.7.1-cp38-cp38-win_amd64.whl (436.3 MB)
----- ---------------------------------- 57.1/436.3 MB 24.7 kB/s eta 4:16:05
ERROR: Exception:
Traceback (most recent call last):
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\urllib3\response.py”, line 438, in _error_catcher
yield
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\urllib3\response.py”, line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py”, line 90, in read
data = self.__fp.read(amt)
File “C:\Users\riaz\AppData\Local\Programs\Python\Python38\lib\http\client.py”, line 455, in read
n = self.readinto(b)
File “C:\Users\riaz\AppData\Local\Programs\Python\Python38\lib\http\client.py”, line 499, in readinto
n = self.fp.readinto(b)
File “C:\Users\riaz\AppData\Local\Programs\Python\Python38\lib\socket.py”, line 669, in readinto
return self._sock.recv_into(b)
File “C:\Users\riaz\AppData\Local\Programs\Python\Python38\lib\ssl.py”, line 1241, in recv_into
return self.read(nbytes, buffer)
File “C:\Users\riaz\AppData\Local\Programs\Python\Python38\lib\ssl.py”, line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\cli\base_command.py”, line 167, in exc_logging_wrapper
status = run_func(*args)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\cli\req_command.py”, line 205, in wrapper
return func(self, options, args)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\commands\install.py”, line 339, in run
requirement_set = resolver.resolve(
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py”, line 94, in resolve
result = self._result = resolver.resolve(
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 213, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 204, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
if not criterion.candidates:
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\resolvelib\structs.py”, line 151, in bool
return bool(self._sequence)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py”, line 155, in bool
return any(self)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py”, line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
candidate = func()
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\factory.py”, line 215, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py”, line 288, in init
super().init(
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py”, line 158, in init
self.dist = self._prepare()
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py”, line 227, in _prepare
dist = self._prepare_distribution()
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py”, line 299, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\operations\prepare.py”, line 487, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\operations\prepare.py”, line 532, in _prepare_linked_requirement
local_file = unpack_url(
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\operations\prepare.py”, line 214, in unpack_url
file = get_http_url(
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\operations\prepare.py”, line 94, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\network\download.py”, line 146, in call
for chunk in chunks:
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\cli\progress_bars.py”, line 304, in _rich_progress_bar
for chunk in iterable:
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_internal\network\utils.py”, line 63, in response_chunks
for chunk in response.raw.stream(
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\urllib3\response.py”, line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\urllib3\response.py”, line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File “C:\Users\riaz\AppData\Local\Programs\Python\Python38\lib\contextlib.py”, line 131, in exit
self.gen.throw(type, value, traceback)
File “c:\users\riaz\desktop\venv\lib\site-packages\pip_vendor\urllib3\response.py”, line 455, in _error_catcher
raise ProtocolError(“Connection broken: %r” % e, e)
pip._vendor.urllib3.exceptions.ProtocolError: (“Connection broken: ConnectionResetError(10054, ‘An existing connection was forcibly closed by the remote host’, None, 10054, None)”, ConnectionResetError(10054, ‘An existing connection was forcibly closed by the remote host’, None, 10054, None))