Articles to see when installation for Python + OpenCV fails

environment

Windows10, Python3.7.4, Visual Studio Code 1.40.2 Personal computer in the campus lab, ** Under proxy environment (cause) **

What i did

-Installation using pip (failure)

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.

-Installation using pip when going through a proxy (success)

→ 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

Articles to see when installation for Python + OpenCV fails
OpenCV3 installation for Python3 @macOS
python openCV installation (memo)
Introduction to OpenCV (python)-(2)
OpenCV for Python beginners
~ Tips for beginners to Python ③ ~
Introduction to Python For, While
What to do if package installation fails when deploying to heroku
I tried to touch Python (installation)
What I was addicted to when introducing ALE to Vim for Python
Atom: Note for Indentation Error when copying Python script to shell
Articles to see if rejected when git push heroku master on Heroku
See python for the first time
If Python 3.5.0 installation fails on Mac
Introduction to image analysis opencv python
Articles to read when Blender Python script code doesn't work in 2.80
An introduction to Python for non-engineers
Things to watch out for when creating a Python environment on a Mac
Error due to UnicodeDecodeError when reading CSV file with Python [For beginners]
Notes for using OpenCV on Windows10 Python 3.8.3.
Memo to ask for KPI with python
An introduction to OpenCV for machine learning
Solution for errors when deploying to Heroku
[python, multiprocessing] Behavior for exceptions when using multiprocessing
[Python] Organizing how to use for statements
How to check opencv version in python
[Python] Read images with OpenCV (for beginners)
Python> Output numbers from 1 to 100, 501 to 600> For csv
How to use "deque" for Python data
An introduction to Python for machine learning
Python Tools for Visual Studio Installation Guide
An introduction to Python for C programmers
Python installation
Python installation
Memo # 4 for Python beginners to read "Detailed Python Grammar"
How to start Python (Flask) when EC2 starts
The fastest way for beginners to master Python
How to install OpenCV on Jetson Nano Python
Settings for uploading Python packages locally to PyPI
Memo # 3 for Python beginners to read "Detailed Python Grammar"
How to install Python for pharmaceutical company researchers
Memo # 1 for Python beginners to read "Detailed Python Grammar"
[Python] Precautions when assigning values to multidimensional arrays
The easiest way to use OpenCV with python
Try to calculate RPN in Python (for beginners)
Python Note: When assigning a value to a string
Python | Sort visualization | It feels good to see
Memo # 2 for Python beginners to read "Detailed Python Grammar"
Export Python3 version OpenCV KeyPoint to a file
What I did when updating from Python 2.6 to 2.7
Memo # 7 for Python beginners to read "Detailed Python Grammar"
[Python] How to install OpenCV on Anaconda [Windows]
Introduction to Programming (Python) TA Tendency for beginners
Error when trying to install psycopg2 in Python
[Python] How to handle Japanese characters with openCV
Memo # 6 for Python beginners to read "Detailed Python Grammar"
How to make Python faster for beginners [numpy]
From easy git installation to docker startup python
String to Unicode Escape Sequence Format for Python
Materials to read when getting started with Python
Memo # 5 for Python beginners to read "Detailed Python Grammar"