Windows10, Python3.7.4, Visual Studio Code 1.40.2 Personal computer in the campus lab, ** Under proxy environment (cause) **
pip install opencv-python
This error
output
Collecting opencv-python
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000028DF62573C8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/opencv-python/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000028DF6259388>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/opencv-python/
ERROR: Operation cancelled by user
Looking at the contents, it has timed out. When I recall that it is via a proxy and search for it, it seems that the proxy is the cause.
→ When going through a proxy, write the --proxy server name after pip ~
pip install opencv-python --proxy http://ID@Server name:8080
It seems that it was done so check
output
python
Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32nc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'4.1.2'
I was able to install it nicely
Recommended Posts