Unable to install robot framework through PIP command

Unable to install robot framework through PIP command and getting below error. Can you please help me out how to install in work network.

This could be related to a local network condition or configuration. A few questions that may lead the right direction:

  • Are you able to download from PyPI with curl? Like curl https://pypi.org/simple/robotframework/
  • Pip tries to use the values from the HTTP_PROXY and HTTPS_PROXY environment variables, are these set? You can show the output of env | grep HTTP
  • Is this in a typical home network or in an enterprise environment? Coz sometimes Corporations uses proxy that blocks certain network access.
  • Has this always happened on this machine, or did it start recently?
  • If this worked in the past, are you on the same network that you were on then?
  • Can you install any other packages?

If you are sure that everything above is not an issue but its related to slow internet then try to increase the default timeout or provide the timeout :

pip --default-timeout=1000 install robotframework
OR 
pip --timeout=1000 install robotframework

If you are able to install packages which are not using HTTPS then it might be SSL issue and you might need to provide the certificate

pip config set global.cert C:\mycertificate.cer

If everything above does not work, then try restarting the machine :wink:

Thanks for quickly responded. Please find inline answers for the questions

  • Are you able to download from PyPI with curl? Like curl https://pypi.org/simple/robotframework/ → Yes I am able to download it and tried to install robot framework package then am getting this error

  • Is this in a typical home network or in an enterprise environment? Coz sometimes Corporations uses proxy that blocks certain network access.–> Using corporate network and system.
  • Has this always happened on this machine, or did it start recently?-> Yes this is happening in the work system
  • If this worked in the past, are you on the same network that you were on then? -No
  • Can you install any other packages?-> No, getting same error

You are getting ReadTimeout from the connection to pypi.org. This is slightly weird – if it would be firewall blocking your access - the access typically is blocked even before “ReadTimeout” can occur. It could be that there’s firewall that inspects the traffic and then blocks the connection thought …

Anyway, in WORK environments, you probably need to configure a PROXY settings for pip. See User Guide - pip documentation v23.3.2 and/or How to Use Pip with a Proxy Server - ActiveState

The actual setting is specific to your work. In most cases, your IT admins should be able to provide you with correct settings.

1 Like