Error during installation (Windows 10)

Collecting botocore<1.24.0,>=1.23.16
  Downloading botocore-1.23.17-py3-none-any.whl (8.4 MB)
     |███████████████▌                | 4.1 MB 22 kB/s eta 0:03:13 ERROR: Exception:
Traceback (most recent call last):
  File "C:\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
    yield
  File "C:\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:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\http\client.py", line 463, in read
    n = self.readinto(b)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\http\client.py", line 507, in readinto
    n = self.fp.readinto(b)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\socket.py", line 704, in readinto
    return self._sock.recv_into(b)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 164, in exc_logging_wrapper
    status = run_func(*args)
  File "C:\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "C:\venv\lib\site-packages\pip\_internal\commands\install.py", line 338, in run
    requirement_set = resolver.resolve(
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "C:\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 482, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "C:\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 374, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
  File "C:\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 214, in _attempt_to_pin_criterion
    criteria = self._get_updated_criteria(candidate)
  File "C:\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 205, in _get_updated_criteria
    self._add_to_criteria(criteria, requirement, parent=candidate)
  File "C:\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
  File "C:\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 151, in __bool__
    return bool(self._sequence)
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
    return any(self)
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
    candidate = func()
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 201, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 281, in __init__
    super().__init__(
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
    self.dist = self._prepare()
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
    dist = self._prepare_distribution()
  File "C:\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 292, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "C:\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 482, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "C:\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 527, in _prepare_linked_requirement
    local_file = unpack_url(
  File "C:\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 213, in unpack_url
    file = get_http_url(
  File "C:\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:\venv\lib\site-packages\pip\_internal\network\download.py", line 145, in __call__
    for chunk in chunks:
  File "C:\venv\lib\site-packages\pip\_internal\cli\progress_bars.py", line 144, in iter
    for x in it:
  File "C:\venv\lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
    for chunk in response.raw.stream(
  File "C:\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "C:\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\contextlib.py", line 137, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

Looks like your internet connection is slow. Add --default-timeout=10000 to your pip command.

@faalbane Hello and Welcome to the community!

Is this error raised when you are trying to install rasa open source? As I can see in the error you have Python 3.9 and currently both Rasa Open source and Rasa X is not supported by Python 3.9 please see this link and quote for your reference: Install Rasa Open Source using pip (requires Python 3.7, or 3.8). | Installation, other wise create the conda environment of Python 3.7 or 3.8 and try install rasa open source you will be able to install successfully. If there is any issue further, please let us know. I hope this will solve your issue. Good Luck.

1 Like

Yes, that too! :smiley:

Use Python 3.7/3.8, and add --default-timeout=10000 to your pip command.

You should use python 3.8, and when you use pip install rasa you will stuck, so you need to run with pip install rasa --use-deprecated=legacy-resolver and solve conflict manually. You can check this article:

@ILG2021 Thanks for the share, can you confirm me what is your rasa --version ?

Yes, I am using rasa 3.0 now. I have successfully install 2.8.x also by this method.

@ILG2021 Are you sure ? as Its mention >=3.6 (How to install Rasa/Rasa X in Windows successfully with detailed instructions? | by Co-learning Lounge | Co-Learning Lounge | Medium) I hope you are using 3.7 or 3.8 Right ? as Python 3.6 is deprecated.

@ILG2021 Did you tried install rasa x also, if yes which version can you share?

I use python 3.8 and Rasa 3.0, and I do not use rasa x now. I installed rasa x when I use rasa 2.8.x. You should not use python 3.9.

If Python is newly installed, Pip will be updated to a fixed version, so no need to use --use-deprecated=legacy-resolver.

@ILG2021 Sure! Thanks for the feedback.

How to Delete Windows.old folder in Windows 11?