Tag Archives: ERROR: Could not install packages due to an OSError

[Solved] PIP install selenium error: ERROR: Could not install packages due to an OSError…

Error Messages:

ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/ad/24/39cab5fbaf425ff522e1e51cce79f94f10f9523f015d2b2251e43f45e8a2/selenium-4.0.0-py3-none-any.whl (Caused by ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001BEAD0A2E88>, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’))

D:\software\python\pip-21.3.1\pip-21.3.1>pip install selenium-4.0.0-py3-none-any.whl
WARNING: Requirement ‘selenium-4.0.0-py3-none-any.whl’ looks like a filename, but the file does not exist
Processing d:\software\python\pip-21.3.1\pip-21.3.1\selenium-4.0.0-py3-none-any.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘D:\\software\\python\\pip-21.3.1\\pip-21.3.1\\selenium-4.0.0-py3-none-any.whl’

Solution:

pip install torchtext

Continue after installation Install selenium
pip install selenium