DEV Community

James Z.
James Z.

Posted on

Connect time out error in pip install opencv

Hello everyone, appreciate if you could you share your thought on how to resolve the following issue: when executing "pip install opencv-python" in Python 3.9.2, error message pops up as: "After connection broken by 'connect time out error', 'connect to pypi.org time out' ". Thanks

Top comments (3)

Collapse
 
qviper profile image
Viper

The error seems to be because of internet connection issues. Could you try to install using wheel file if available?

Collapse
 
james9563012308 profile image
James Z.

Thanks Viper for your recommendation! I am trying it...

Collapse
 
james9563012308 profile image
James Z.

Thanks. The issue is resolved by update the pip version 19.0.3 to 21.3.1; and replacing Python 3.9.7 to 3.7.3.