记一次opencv安装过程

环境为anaconda,python选择3.9

上图,def仅为了可以折叠,方便观察

(simswap) C:\Windows\system32>conda install opencv
def 执行后失败:无科学上网
    Retrieving notices: ...working... DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/notices.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/notices.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/notices.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C53FB90>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/main/notices.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C5E6490>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/r/notices.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C87F8D0>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/msys2/notices.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/notices.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/notices.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/notices.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C894A50>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/main/notices.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C894D90>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/r/notices.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C895150>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/msys2/notices.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/notices.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/notices.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/notices.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C896590>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/main/notices.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C8969D0>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/r/notices.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C896DD0>, 'Connection to repo.anaconda.com timed out. (connect timeout=5)')': /pkgs/msys2/notices.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    done
    Collecting package metadata (current_repodata.json): / DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    \ DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D4C2A90>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/r/win-64/current_repodata.json
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D4C2E90>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/main/noarch/current_repodata.json
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/win-64/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/noarch/current_repodata.json'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514C530AD0>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/main/win-64/current_repodata.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D101390>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/msys2/noarch/current_repodata.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D100F10>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/msys2/win-64/current_repodata.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D101A10>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/r/noarch/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (2): repo.anaconda.com:443
    / DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/noarch/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/noarch/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/win-64/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/noarch/current_repodata.json'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
    | WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D102E50>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/r/win-64/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    / WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D103D90>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/main/noarch/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D120C50>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/main/win-64/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D121190>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/msys2/noarch/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D121610>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/msys2/win-64/current_repodata.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D121B10>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/r/noarch/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (3): repo.anaconda.com:443
    - DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/win-64/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/noarch/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/main/win-64/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/noarch/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/msys2/win-64/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    DEBUG:urllib3.util.retry:Incremented Retry for (url='/pkgs/r/noarch/current_repodata.json'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
    - WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D123E90>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/r/win-64/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D128650>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/main/noarch/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D128E90>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/main/win-64/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D129690>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/msys2/noarch/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D129F90>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/msys2/win-64/current_repodata.json
    WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001514D12A410>, 'Connection to repo.anaconda.com timed out. (connect timeout=9.15)')': /pkgs/r/noarch/current_repodata.json
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (4): repo.anaconda.com:443
    failed

    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
    Elapsed: -

    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.

    If your current network has https://repo.anaconda.com blocked, please file
    a support request with your network engineering team.

    'https//repo.anaconda.com/pkgs/main/win-64'

# 科学上网
(simswap) C:\Windows\system32>conda install opencv
def 执行后:最后一步失败了
    Collecting package metadata (current_repodata.json): / DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    | DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/current_repodata.json HTTP/1.1" 200 None
    / DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/noarch/current_repodata.json HTTP/1.1" 304 0
    DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/current_repodata.json HTTP/1.1" 304 0
    - DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/win-64/current_repodata.json HTTP/1.1" 304 0
    \ DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/win-64/current_repodata.json HTTP/1.1" 304 0
    | DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/noarch/current_repodata.json HTTP/1.1" 304 0
    done
    Solving environment: done


    ==> WARNING: A newer version of conda exists. <==
      current version: 23.7.2
      latest version: 23.7.3

    Please update conda by running

        $ conda update -n base -c defaults conda

    Or to minimize the number of packages updated during conda update use

         conda install conda=23.7.3



    ## Package Plan ##

      environment location: C:\Users\thinkcg\anaconda3\envs\simswap

      added / updated specs:
        - opencv


    The following packages will be downloaded:

        package                    |            build
        ---------------------------|-----------------
        eigen-3.3.7                |       h59b6b97_1         831 KB
        hdf5-1.12.1                |       h51c971a_3        11.9 MB
        krb5-1.20.1                |       h5b6d351_1         786 KB
        libpq-12.15                |       hb652d5d_1         3.2 MB
        libxml2-2.10.4             |       h0ad7f3c_1         2.8 MB
        libxslt-1.1.37             |       h2bbff1b_1         447 KB
        opencv-4.6.0               |   py39ha36de5b_5        29.9 MB
        qt-main-5.15.2             |       h6072711_9        59.4 MB
        qt-webengine-5.15.9        |       h5bd16bc_7        58.1 MB
        ------------------------------------------------------------
                                               Total:       167.4 MB

    The following NEW packages will be INSTALLED:

      eigen              pkgs/main/win-64::eigen-3.3.7-h59b6b97_1
      ffmpeg             pkgs/main/win-64::ffmpeg-4.2.2-he774522_0
      glib               pkgs/main/win-64::glib-2.69.1-h5dc1a3c_2
      gst-plugins-base   pkgs/main/win-64::gst-plugins-base-1.18.5-h9e645db_0
      gstreamer          pkgs/main/win-64::gstreamer-1.18.5-hd78058f_0
      hdf5               pkgs/main/win-64::hdf5-1.12.1-h51c971a_3
      icc_rt             pkgs/main/win-64::icc_rt-2022.1.0-h6049295_2
      icu                pkgs/main/win-64::icu-58.2-ha925a31_3
      krb5               pkgs/main/win-64::krb5-1.20.1-h5b6d351_1
      libclang           pkgs/main/win-64::libclang-14.0.6-default_hb5a9fac_1
      libclang13         pkgs/main/win-64::libclang13-14.0.6-default_h8e68704_1
      libffi             pkgs/main/win-64::libffi-3.4.4-hd77b12b_0
      libiconv           pkgs/main/win-64::libiconv-1.16-h2bbff1b_2
      libogg             pkgs/main/win-64::libogg-1.3.5-h2bbff1b_1
      libpq              pkgs/main/win-64::libpq-12.15-hb652d5d_1
      libprotobuf        pkgs/main/win-64::libprotobuf-3.20.3-h23ce68f_0
      libvorbis          pkgs/main/win-64::libvorbis-1.3.7-he774522_0
      libxml2            pkgs/main/win-64::libxml2-2.10.4-h0ad7f3c_1
      libxslt            pkgs/main/win-64::libxslt-1.1.37-h2bbff1b_1
      opencv             pkgs/main/win-64::opencv-4.6.0-py39ha36de5b_5
      pcre               pkgs/main/win-64::pcre-8.45-hd77b12b_0
      qt-main            pkgs/main/win-64::qt-main-5.15.2-h6072711_9
      qt-webengine       pkgs/main/win-64::qt-webengine-5.15.9-h5bd16bc_7
      qtwebkit           pkgs/main/win-64::qtwebkit-5.212-h2bbfb41_5


    Proceed ([y]/n)? y


    Downloading and Extracting Packages
    qt-webengine-5.15.9  | 58.1 MB   |                                                                                  |   0% DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443                                |   0%
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443                               |   0%



    libxml2-2.10.4       | 2.8 MB    |                                                                                  |   0% D
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
                                                                                                                               DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/qt-webengine-5.15.9-h5bd16bc_7.conda HTTP/1.1" 200 60963283     | 786 KB    |                                                                                  |   0% D
    DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/opencv-4.6.0-py39ha36de5b_5.conda HTTP/1.1" 200 31336072
    DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/hdf5-1.12.1-h51c971a_3.conda HTTP/1.1" 200 12486857.15.2       | 59.4 MB   |                                                                                  |   0%
    qt-webengine-5.15.9  | 58.1 MB   | 3                                                                                |   0% DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/libxslt-1.1.37-h2bbff1b_1.conda HTTP/1.1" 200 457852
                                                                                                                               DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/libxml2-2.10.4-h0ad7f3c_1.conda HTTP/1.1" 200 2976881
    qt-webengine-5.15.9  | 58.1 MB   | #7                                                                               |   2% DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/krb5-1.20.1-h5b6d351_1.conda HTTP/1.1" 200 805284t-1.1.37       | 447 KB    | ################################################################################ | 100%
    qt-webengine-5.15.9  | 58.1 MB   | ####3                                                                            |   5% DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/qt-main-5.15.2-h6072711_9.conda HTTP/1.1" 200 62316326
    qt-webengine-5.15.9  | 58.1 MB   | ##########1                                                                      |  13% DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/libpq-12.15-hb652d5d_1.conda HTTP/1.1" 200 331354020.1          | 786 KB    | ################################################################################ | 100%
    qt-webengine-5.15.9  | 58.1 MB   | ###########5                                                                     |  14% DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/eigen-3.3.7-h59b6b97_1.conda HTTP/1.1" 200 851327


    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/qt-webengine-5.15.9-h5bd16bc_7.conda>
    Elapsed: -

    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.
# 科学上网
(simswap) C:\Windows\system32>conda install opencv
def 执行后:成功
    Collecting package metadata (current_repodata.json): / DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    \ DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/win-64/current_repodata.json HTTP/1.1" 304 0
    DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/noarch/current_repodata.json HTTP/1.1" 304 0
    DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/win-64/current_repodata.json HTTP/1.1" 304 0
    | DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/current_repodata.json HTTP/1.1" 304 0
    DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/msys2/noarch/current_repodata.json HTTP/1.1" 304 0
    DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/current_repodata.json HTTP/1.1" 304 0
    done
    Solving environment: done


    ==> WARNING: A newer version of conda exists. <==
      current version: 23.7.2
      latest version: 23.7.3

    Please update conda by running

        $ conda update -n base -c defaults conda

    Or to minimize the number of packages updated during conda update use

         conda install conda=23.7.3



    ## Package Plan ##

      environment location: C:\Users\thinkcg\anaconda3\envs\simswap

      added / updated specs:
        - opencv


    The following packages will be downloaded:

        package                    |            build
        ---------------------------|-----------------
        qt-webengine-5.15.9        |       h5bd16bc_7        58.1 MB
        ------------------------------------------------------------
                                               Total:        58.1 MB

    The following NEW packages will be INSTALLED:

      eigen              pkgs/main/win-64::eigen-3.3.7-h59b6b97_1
      ffmpeg             pkgs/main/win-64::ffmpeg-4.2.2-he774522_0
      glib               pkgs/main/win-64::glib-2.69.1-h5dc1a3c_2
      gst-plugins-base   pkgs/main/win-64::gst-plugins-base-1.18.5-h9e645db_0
      gstreamer          pkgs/main/win-64::gstreamer-1.18.5-hd78058f_0
      hdf5               pkgs/main/win-64::hdf5-1.12.1-h51c971a_3
      icc_rt             pkgs/main/win-64::icc_rt-2022.1.0-h6049295_2
      icu                pkgs/main/win-64::icu-58.2-ha925a31_3
      krb5               pkgs/main/win-64::krb5-1.20.1-h5b6d351_1
      libclang           pkgs/main/win-64::libclang-14.0.6-default_hb5a9fac_1
      libclang13         pkgs/main/win-64::libclang13-14.0.6-default_h8e68704_1
      libffi             pkgs/main/win-64::libffi-3.4.4-hd77b12b_0
      libiconv           pkgs/main/win-64::libiconv-1.16-h2bbff1b_2
      libogg             pkgs/main/win-64::libogg-1.3.5-h2bbff1b_1
      libpq              pkgs/main/win-64::libpq-12.15-hb652d5d_1
      libprotobuf        pkgs/main/win-64::libprotobuf-3.20.3-h23ce68f_0
      libvorbis          pkgs/main/win-64::libvorbis-1.3.7-he774522_0
      libxml2            pkgs/main/win-64::libxml2-2.10.4-h0ad7f3c_1
      libxslt            pkgs/main/win-64::libxslt-1.1.37-h2bbff1b_1
      opencv             pkgs/main/win-64::opencv-4.6.0-py39ha36de5b_5
      pcre               pkgs/main/win-64::pcre-8.45-hd77b12b_0
      qt-main            pkgs/main/win-64::qt-main-5.15.2-h6072711_9
      qt-webengine       pkgs/main/win-64::qt-webengine-5.15.9-h5bd16bc_7
      qtwebkit           pkgs/main/win-64::qtwebkit-5.212-h2bbfb41_5


    Proceed ([y]/n)? y


    Downloading and Extracting Packages
    qt-webengine-5.15.9  | 58.1 MB   |                                                                                  |   0% DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
    DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/win-64/qt-webengine-5.15.9-h5bd16bc_7.conda HTTP/1.1" 200 60963283

    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done

# end

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 齐次坐标(Homogeneous coordinates)是计算机视觉和图形学中常用的一种坐标系统。它可以将几何图形中的点、向量、平面等抽象概念用一个更为简单和统一的方式表示出来,从而方便计算机对它们进行处理。 在齐次坐标中,一个点的坐标由四个分量表示,通常表示为(x, y, z, w),其中(x, y, z)是点在三维空间中的坐标,w是一个称为齐次坐标参数(homogeneous coordinate parameter)的参数。齐次坐标参数可以取任意非零值,但是通常取1,这样可以避免数值计算中的除法操作。 使用齐次坐标,可以将二维图形中的变换表示为一个3x3的矩阵变换,而将三维图形中的变换表示为一个4x4的矩阵变换,这样可以方便地进行矩阵乘法等数值计算。齐次坐标还可以用于表示平面、直线和多边形等几何图形,方便进行投影和变换操作。 ### 回答2: 齐次坐标是指在计算机视觉中广泛应用的一种扩展形式的坐标表示方法。在齐次坐标中,一个点的坐标由其原始的几何坐标(x、y)和一个额外的维度(w)组成,即(x, y, w)。 齐次坐标可以理解为在欧几里得空间中的同一个坐标系中,通过引入一个额外的维度w来扩展原始坐标。这个额外的维度w允许我们同时表示平移和旋转操作,从而更方便地进行计算。 在齐次坐标中,一个点的坐标可以通过除以w来恢复原始的几何坐标,即:x = x' / w,y = y' / w。这意味着通过齐次坐标可以方便地进行坐标变换,例如平移、旋转、缩放等,并且不需要进行额外的计算。 齐次坐标在计算机视觉中的广泛应用主要体现在图像变换和计算几何变换中。例如,在图像变换中,我们可以通过齐次坐标方便地进行图像的平移、旋转等操作。在计算几何变换中,我们可以通过齐次坐标进行方便地进行三维点的投影等操作。 总之,齐次坐标通过引入一个额外的维度w,扩展了原始点的坐标表示,方便了计算机视觉中的图像变换和几何变换的操作。 ### 回答3: 齐次坐标是计算机视觉领域中常用的一种表示方法,它是通过在传统的欧几里得坐标系上引入一个额外的维度来扩展的。具体来说,在齐次坐标中,一个点或向量由四个分量表示,通常作(x, y, z, w),其中(x, y, z)表示点的三维坐标,w表示缩放因子。 齐次坐标的一个重要应用是可以将欧几里得空间中的平移运算与仿射变换(包括平移、旋转、缩放和错切)统一起来。通过齐次坐标,我们可以将平移操作以矩阵的形式表示,并与其他变换操作(如旋转、缩放)组合在一起。 齐次坐标还可以简化对图像的透视变换处理。在传统的欧几里得空间中,透视变换会引入非线性变换,计算复杂度较高。而在齐次坐标中,透视变换可以通过线性变换来表示,简化了计算过程。 在OpenCV库中,齐次坐标经常用于表示图像中的关键点(如角点、边缘点)和几何变换过程中。OpenCV提供了丰富的函数和工具,用于处理和计算齐次坐标表示的点和向量,包括坐标转换、透视变换、仿射变换等。 总之,齐次坐标是计算机视觉中一种重要的数学工具,它通过引入额外的维度,将欧几里得空间中的几何变换问题转化为线性变换问题,简化了计算过程,提高了计算效率。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值