pip install charset_normalizer requests
Collecting charset_normalizer
Using cached charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
Collecting requests
Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Requirement already satisfied: idna<4,>=2.5 in /home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages (from requests) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages (from requests) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in /home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages (from requests) (2024.6.2)
Using cached charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (141 kB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/64.9 kB ? eta -:--:--
ERROR: Exception:
Traceback (most recent call last):
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
yield
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 98, in read
data: bytes = self.__fp.read(amt)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/http/client.py", line 459, in read
n = self.readinto(b)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/http/client.py", line 503, in readinto
n = self.fp.readinto(b)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/ssl.py", line 1132, 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 "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
return func(self, options, args)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 377, in run
requirement_set = resolver.resolve(
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 179, in resolve
self.factory.preparer.prepare_linked_requirements_more(reqs)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 552, in prepare_linked_requirements_more
self._complete_partial_requirements(
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 467, in _complete_partial_requirements
for link, (filepath, _) in batch_download:
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/network/download.py", line 183, in
for chunk in chunks:
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 587, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/contextlib.py", line 131, in
self.gen.throw(type, value, traceback)
File "/home/heyuting/anaconda3/envs/event/lib/python3.8/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.