简体   繁体   中英

Anaconda package install timeout error

I am trying to install cv2 package from Anaconda command prompt using 'conda install cv2' but I keep getting the following error. I tried installing other packages but it gives the same error. Any feedback?

C:\\ProgramData\\Anaconda3) C:\\Users\\user\u0026gt;conda install cv2 Fetching package metadata ...CondaHTTPError: HTTP None None for url https://repo.continuum.io/pkgs/free/win64/repodata.json.bz2 Elapsed: None n HTTP error occurred when trying to retrieve this URL. GTTP errors are often intermittent, and a simple retry will get you on your way.

ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='repo.continuum.io', port =443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by ConnectTimeoutError(, 'Connection to repo.continuum.io timed out (connect timeout=9.15)'))",),)

你的命令错了,应该是:

conda install opencv-python

This was a firewall issue. Disabling the firewall resolved the issue and I was able to install opencv package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM