Paddlex's dependency package pycocotools


(pythonProject) C:\Users\79008\PycharmProjects\pythonProject>pip install pycocotools
Collecting pycocotools
  Using cached pycocotools-2.0.6.tar.gz (24 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\79008\.conda\envs\pythonproject\lib\site-packages (from pycocotools) (1.24.3)
Collecting matplotlib>=2.1.0
  Downloading matplotlib-3.7.1-cp39-cp39-win_amd64.whl (7.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.6/7.6 MB 4.2 MB/s eta 0:00:00
Collecting packaging>=20.0
  Using cached packaging-23.1-py3-none-any.whl (48 kB)
Collecting pyparsing>=2.3.1
  Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting importlib-resources>=3.2.0
  Using cached importlib_resources-5.12.0-py3-none-any.whl (36 kB)
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.4-cp39-cp39-win_amd64.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.4/55.4 kB 1.5 MB/s eta 0:00:00
Collecting contourpy>=1.0.1
  Downloading contourpy-1.0.7-cp39-cp39-win_amd64.whl (160 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.2/160.2 kB 3.2 MB/s eta 0:00:00
Requirement already satisfied: pillow>=6.2.0 in c:\users\79008\.conda\envs\pythonproject\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (9.5.0)
Collecting cycler>=0.10
  Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0
  Using cached fonttools-4.39.3-py3-none-any.whl (1.0 MB)
Collecting python-dateutil>=2.7
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting zipp>=3.1.0
  Using cached zipp-3.15.0-py3-none-any.whl (6.8 kB)
Requirement already satisfied: six>=1.5 in c:\users\79008\.conda\envs\pythonproject\lib\site-packages (from python-dateutil>=2.7->matplotlib>=2.1.0->pycocotools) (1.16.0)
Building wheels for collected packages: pycocotools
  Building wheel for pycocotools (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pycocotools (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-39
      creating build\lib.win-amd64-cpython-39\pycocotools
      copying pycocotools\coco.py -> build\lib.win-amd64-cpython-39\pycocotools
      cythoning pycocotools/_mask.pyx to pycocotools\_mask.c
      C:\Users\79008\AppData\Local\Temp\pip-build-env-muev2_12\overlay\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later rel
ease! File: C:\Users\79008\AppData\Local\Temp\pip-install-_66bvm1d\pycocotools_d46297d56411477b8c991ae96956d33d\pycocotools\_mask.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      building 'pycocotools._mask' extension
      creating build\temp.win-amd64-cpython-39
      creating build\temp.win-amd64-cpython-39\Release
      creating build\temp.win-amd64-cpython-39\Release\common
      creating build\temp.win-amd64-cpython-39\Release\pycocotools
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\79008\AppData\Local\Temp\pip-build-env-muev2_12\overlay\Lib\site
-packages\numpy\core\include -I./common -IC:\Users\79008\.conda\envs\pythonProject\include -IC:\Users\79008\.conda\envs\pythonProject\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.301
33\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-cpython-39\Release\./common/maskApi.obj
      maskApi.c
      ./common/maskApi.c(8): fatal error C1083: 无法打开包括文件: “math.h”: No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycocotools
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

(pythonProject) C:\Users\79008\PycharmProjects\pythonProject>conda install -c conda-forge pycocotools
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\79008\.conda\envs\pythonProject

  added / updated specs:
    - pycocotools


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    brotli-1.0.9               |       hcfcfb64_8          19 KB  conda-forge
    brotli-bin-1.0.9           |       hcfcfb64_8          22 KB  conda-forge
    ca-certificates-2022.12.7  |       h5b45459_0         143 KB  conda-forge
    certifi-2022.12.7          |     pyhd8ed1ab_0         147 KB  conda-forge
    contourpy-1.0.7            |   py39h1f6ef14_0         156 KB  conda-forge
    cycler-0.11.0              |     pyhd8ed1ab_0          10 KB  conda-forge
    cython-0.29.34             |   py39h99910a6_0         1.8 MB  conda-forge
    fonttools-4.39.3           |   py39ha55989b_0         1.7 MB  conda-forge
    freetype-2.12.1            |       h546665d_1         486 KB  conda-forge
    importlib-resources-5.12.0 |     pyhd8ed1ab_0           9 KB  conda-forge
    importlib_resources-5.12.0 |     pyhd8ed1ab_0          30 KB  conda-forge
    intel-openmp-2023.1.0      |   h57928b3_46319         2.5 MB  conda-forge
    kiwisolver-1.4.4           |   py39h1f6ef14_1          58 KB  conda-forge
    lcms2-2.15                 |       h3e3b177_1         487 KB  conda-forge
    lerc-4.0.0                 |       h63175ca_0         190 KB  conda-forge
    libblas-3.9.0              |     16_win64_mkl         5.6 MB  conda-forge
    libbrotlicommon-1.0.9      |       hcfcfb64_8          67 KB  conda-forge
    libbrotlidec-1.0.9         |       hcfcfb64_8          34 KB  conda-forge
    libbrotlienc-1.0.9         |       hcfcfb64_8         724 KB  conda-forge
    libcblas-3.9.0             |     16_win64_mkl         5.6 MB  conda-forge
    libdeflate-1.18            |       hcfcfb64_0         149 KB  conda-forge
    libhwloc-2.9.1             |       h51c2c0f_0         2.4 MB  conda-forge
    libiconv-1.17              |       h8ffe710_0         698 KB  conda-forge
    libjpeg-turbo-2.1.5.1      |       hcfcfb64_0         672 KB  conda-forge
    liblapack-3.9.0            |     16_win64_mkl         5.6 MB  conda-forge
    libpng-1.6.39              |       h19919ed_0         336 KB  conda-forge
    libtiff-4.5.0              |       h6c8260b_6         1.0 MB  conda-forge
    libwebp-base-1.3.0         |       hcfcfb64_0         262 KB  conda-forge
    libxcb-1.13                |    hcd874cb_1004         1.3 MB  conda-forge
    libxml2-2.10.4             |       hc3477c8_0         1.7 MB  conda-forge
    libzlib-1.2.13             |       hcfcfb64_4          70 KB  conda-forge
    m2w64-gcc-libgfortran-5.3.0|                6         342 KB  conda-forge
    m2w64-gcc-libs-5.3.0       |                7         520 KB  conda-forge
    m2w64-gcc-libs-core-5.3.0  |                7         214 KB  conda-forge
    m2w64-gmp-6.1.0            |                2         726 KB  conda-forge
    m2w64-libwinpthread-git-5.0.0.4634.697f757|                2          31 KB  conda-forge
    matplotlib-base-3.7.1      |   py39haf65ace_0         6.4 MB  conda-forge
    mkl-2022.1.0               |     h6a75c08_874       182.7 MB  conda-forge
    msys2-conda-epoch-20160418 |                1           3 KB  conda-forge
    munkres-1.1.4              |     pyh9f0ad1d_0          12 KB  conda-forge
    numpy-1.24.3               |   py39h816b6a6_0         5.7 MB  conda-forge
    openjpeg-2.5.0             |       ha2aaf27_2         232 KB  conda-forge
    openssl-1.1.1t             |       hcfcfb64_0         5.0 MB  conda-forge
    packaging-23.1             |     pyhd8ed1ab_0          45 KB  conda-forge
    pillow-9.5.0               |   py39haa1d754_0        44.1 MB  conda-forge
    pthread-stubs-0.4          |    hcd874cb_1001           6 KB  conda-forge
    pthreads-win32-2.9.1       |       hfa6e2cd_3         141 KB  conda-forge
    pycocotools-2.0.6          |   py39hc266a54_1          93 KB  conda-forge
    pyparsing-3.0.9            |     pyhd8ed1ab_0          79 KB  conda-forge
    python-dateutil-2.8.2      |     pyhd8ed1ab_0         240 KB  conda-forge
    python_abi-3.9             |           2_cp39           4 KB  conda-forge
    six-1.16.0                 |     pyh6c4a22f_0          14 KB  conda-forge
    tbb-2021.9.0               |       h91493d7_0         151 KB  conda-forge
    tk-8.6.12                  |       h8ffe710_0         3.5 MB  conda-forge
    ucrt-10.0.22621.0          |       h57928b3_0         1.2 MB  conda-forge
    unicodedata2-15.0.0        |   py39ha55989b_0         495 KB  conda-forge
    vs2015_runtime-14.34.31931 |      h4c5c07a_11         709 KB  conda-forge
    xorg-libxau-1.0.9          |       hcd874cb_0          57 KB  conda-forge
    xorg-libxdmcp-1.1.3        |       hcd874cb_0          66 KB  conda-forge
    xz-5.2.6                   |       h8d14728_0         213 KB  conda-forge
    zipp-3.15.0                |     pyhd8ed1ab_0          17 KB  conda-forge
    zstd-1.5.2                 |       h12be248_6         282 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       286.9 MB

The following NEW packages will be INSTALLED:

  brotli             conda-forge/win-64::brotli-1.0.9-hcfcfb64_8
  brotli-bin         conda-forge/win-64::brotli-bin-1.0.9-hcfcfb64_8
  certifi            conda-forge/noarch::certifi-2022.12.7-pyhd8ed1ab_0
  contourpy          conda-forge/win-64::contourpy-1.0.7-py39h1f6ef14_0
  cycler             conda-forge/noarch::cycler-0.11.0-pyhd8ed1ab_0
  cython             conda-forge/win-64::cython-0.29.34-py39h99910a6_0
  fonttools          conda-forge/win-64::fonttools-4.39.3-py39ha55989b_0
  freetype           conda-forge/win-64::freetype-2.12.1-h546665d_1
  importlib-resourc~ conda-forge/noarch::importlib-resources-5.12.0-pyhd8ed1ab_0
  importlib_resourc~ conda-forge/noarch::importlib_resources-5.12.0-pyhd8ed1ab_0
  intel-openmp       conda-forge/win-64::intel-openmp-2023.1.0-h57928b3_46319
  kiwisolver         conda-forge/win-64::kiwisolver-1.4.4-py39h1f6ef14_1
  lcms2              conda-forge/win-64::lcms2-2.15-h3e3b177_1
  lerc               conda-forge/win-64::lerc-4.0.0-h63175ca_0
  libblas            conda-forge/win-64::libblas-3.9.0-16_win64_mkl
  libbrotlicommon    conda-forge/win-64::libbrotlicommon-1.0.9-hcfcfb64_8
  libbrotlidec       conda-forge/win-64::libbrotlidec-1.0.9-hcfcfb64_8
  libbrotlienc       conda-forge/win-64::libbrotlienc-1.0.9-hcfcfb64_8
  libcblas           conda-forge/win-64::libcblas-3.9.0-16_win64_mkl
  libdeflate         conda-forge/win-64::libdeflate-1.18-hcfcfb64_0
  libhwloc           conda-forge/win-64::libhwloc-2.9.1-h51c2c0f_0
  libiconv           conda-forge/win-64::libiconv-1.17-h8ffe710_0
  libjpeg-turbo      conda-forge/win-64::libjpeg-turbo-2.1.5.1-hcfcfb64_0
  liblapack          conda-forge/win-64::liblapack-3.9.0-16_win64_mkl
  libpng             conda-forge/win-64::libpng-1.6.39-h19919ed_0
  libtiff            conda-forge/win-64::libtiff-4.5.0-h6c8260b_6
  libwebp-base       conda-forge/win-64::libwebp-base-1.3.0-hcfcfb64_0
  libxcb             conda-forge/win-64::libxcb-1.13-hcd874cb_1004
  libxml2            conda-forge/win-64::libxml2-2.10.4-hc3477c8_0
  libzlib            conda-forge/win-64::libzlib-1.2.13-hcfcfb64_4
  m2w64-gcc-libgfor~ conda-forge/win-64::m2w64-gcc-libgfortran-5.3.0-6
  m2w64-gcc-libs     conda-forge/win-64::m2w64-gcc-libs-5.3.0-7
  m2w64-gcc-libs-co~ conda-forge/win-64::m2w64-gcc-libs-core-5.3.0-7
  m2w64-gmp          conda-forge/win-64::m2w64-gmp-6.1.0-2
  m2w64-libwinpthre~ conda-forge/win-64::m2w64-libwinpthread-git-5.0.0.4634.697f757-2
  matplotlib-base    conda-forge/win-64::matplotlib-base-3.7.1-py39haf65ace_0
  mkl                conda-forge/win-64::mkl-2022.1.0-h6a75c08_874
  msys2-conda-epoch  conda-forge/win-64::msys2-conda-epoch-20160418-1
  munkres            conda-forge/noarch::munkres-1.1.4-pyh9f0ad1d_0
  numpy              conda-forge/win-64::numpy-1.24.3-py39h816b6a6_0
  openjpeg           conda-forge/win-64::openjpeg-2.5.0-ha2aaf27_2
  packaging          conda-forge/noarch::packaging-23.1-pyhd8ed1ab_0
  pillow             conda-forge/win-64::pillow-9.5.0-py39haa1d754_0
  pthread-stubs      conda-forge/win-64::pthread-stubs-0.4-hcd874cb_1001
  pthreads-win32     conda-forge/win-64::pthreads-win32-2.9.1-hfa6e2cd_3
  pycocotools        conda-forge/win-64::pycocotools-2.0.6-py39hc266a54_1
  pyparsing          conda-forge/noarch::pyparsing-3.0.9-pyhd8ed1ab_0
  python-dateutil    conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab_0
  python_abi         conda-forge/win-64::python_abi-3.9-2_cp39
  six                conda-forge/noarch::six-1.16.0-pyh6c4a22f_0
  tbb                conda-forge/win-64::tbb-2021.9.0-h91493d7_0
  tk                 conda-forge/win-64::tk-8.6.12-h8ffe710_0
  ucrt               conda-forge/win-64::ucrt-10.0.22621.0-h57928b3_0
  unicodedata2       conda-forge/win-64::unicodedata2-15.0.0-py39ha55989b_0
  xorg-libxau        conda-forge/win-64::xorg-libxau-1.0.9-hcd874cb_0
  xorg-libxdmcp      conda-forge/win-64::xorg-libxdmcp-1.1.3-hcd874cb_0
  xz                 conda-forge/win-64::xz-5.2.6-h8d14728_0
  zipp               conda-forge/noarch::zipp-3.15.0-pyhd8ed1ab_0
  zstd               conda-forge/win-64::zstd-1.5.2-h12be248_6

The following packages will be UPDATED:

  vs2015_runtime     pkgs/main::vs2015_runtime-14.27.29016~ --> conda-forge::vs2015_runtime-14.34.31931-h4c5c07a_11

Downloading and Extracting Packages
six-1.16.0           | 14 KB     | ########################################################################################################################################################################################## | 100%  
zipp-3.15.0          | 17 KB     | ########################################################################################################################################################################################## | 100%  
python-dateutil-2.8. | 240 KB    | ########################################################################################################################################################################################## | 100%  
freetype-2.12.1      | 486 KB    | ########################################################################################################################################################################################## | 100%  
vs2015_runtime-14.34 | 709 KB    | ########################################################################################################################################################################################## | 100%  
ca-certificates-2022 | 143 KB    | ########################################################################################################################################################################################## | 100%  
tbb-2021.9.0         | 151 KB    | ########################################################################################################################################################################################## | 100%  
tk-8.6.12            | 3.5 MB    | ########################################################################################################################################################################################## | 100%  
unicodedata2-15.0.0  | 495 KB    | ########################################################################################################################################################################################## | 100%  
packaging-23.1       | 45 KB     | ########################################################################################################################################################################################## | 100%  
lcms2-2.15           | 487 KB    | ########################################################################################################################################################################################## | 100%  
importlib_resources- | 30 KB     | ########################################################################################################################################################################################## | 100%  
libtiff-4.5.0        | 1.0 MB    | ########################################################################################################################################################################################## | 100%  
contourpy-1.0.7      | 156 KB    | ########################################################################################################################################################################################## | 100%  
python_abi-3.9       | 4 KB      | ########################################################################################################################################################################################## | 100%  
openjpeg-2.5.0       | 232 KB    | ########################################################################################################################################################################################## | 100%  
msys2-conda-epoch-20 | 3 KB      | ########################################################################################################################################################################################## | 100%  
libblas-3.9.0        | 5.6 MB    | ########################################################################################################################################################################################## | 100%  
brotli-bin-1.0.9     | 22 KB     | ########################################################################################################################################################################################## | 100%  
pthread-stubs-0.4    | 6 KB      | ########################################################################################################################################################################################## | 100%  
brotli-1.0.9         | 19 KB     | ########################################################################################################################################################################################## | 100%  
ucrt-10.0.22621.0    | 1.2 MB    | ########################################################################################################################################################################################## | 100%  
libiconv-1.17        | 698 KB    | ########################################################################################################################################################################################## | 100%  
libbrotlienc-1.0.9   | 724 KB    | ########################################################################################################################################################################################## | 100%  

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

(pythonProject) C:\Users\79008\PycharmProjects\pythonProject>

おすすめ

転載: blog.csdn.net/qq_42672770/article/details/130399726