Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install error #431

Open
cactusgame opened this issue Feb 6, 2024 · 1 comment
Open

pip install error #431

cactusgame opened this issue Feb 6, 2024 · 1 comment

Comments

@cactusgame
Copy link

cactusgame commented Feb 6, 2024

On Mac x86, just using pip install -r requirement.txt with python3.7.4.

 Using cached http://mirrors.aliyun.com/pypi/packages/f1/00/c1b90843cb80e6a1911f480e92a92b1258efcdd32ed4fe87449703416fc4/multiprocess-0.70.14-py37-none-any.whl (115 kB)
Collecting pytz>=2017.3
  Using cached http://mirrors.aliyun.com/pypi/packages/9c/3d/a121f284241f08268b21359bd425f7d4825cffc5ac5cd0e1b3d82ffd2b10/pytz-2024.1-py2.py3-none-any.whl (505 kB)
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
  ╰─> [24 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-x86_64-cpython-37
      creating build/lib.macosx-10.9-x86_64-cpython-37/pycocotools
      copying pycocotools/coco.py -> build/lib.macosx-10.9-x86_64-cpython-37/pycocotools
      copying pycocotools/mask.py -> build/lib.macosx-10.9-x86_64-cpython-37/pycocotools
      copying pycocotools/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-37/pycocotools
      copying pycocotools/cocoeval.py -> build/lib.macosx-10.9-x86_64-cpython-37/pycocotools
      running build_ext
      Compiling pycocotools/_mask.pyx because it changed.
      [1/1] Cythonizing pycocotools/_mask.pyx
      building 'pycocotools._mask' extension
      creating build/common
      creating build/temp.macosx-10.9-x86_64-cpython-37
      creating build/temp.macosx-10.9-x86_64-cpython-37/common
      creating build/temp.macosx-10.9-x86_64-cpython-37/pycocotools
      gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/peng/miniconda3/envs/ofa374/include -arch x86_64 -I/Users/peng/miniconda3/envs/ofa374/include -arch x86_64 -I/private/var/folders/zq/g_1hwvtx4g1b6kth8c0ndtqh0000gp/T/pip-build-env-ce7_1goe/overlay/lib/python3.7/site-packages/numpy/core/include -I./common -I/Users/peng/miniconda3/envs/ofa374/include/python3.7m -c ../common/maskApi.c -o build/temp.macosx-10.9-x86_64-cpython-37/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99
      clang: error: no such file or directory: '../common/maskApi.c'
      clang: error: no input files
      /private/var/folders/zq/g_1hwvtx4g1b6kth8c0ndtqh0000gp/T/pip-build-env-ce7_1goe/overlay/lib/python3.7/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /private/var/folders/zq/g_1hwvtx4g1b6kth8c0ndtqh0000gp/T/pip-install-4eobvhax/pycocotools_6653e305e43c4861a088495938238511/pycocotools/_mask.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      error: command '/usr/bin/gcc' failed with exit code 1
      [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
@eazook10003
Copy link

Try changing your pycocotools version into "pycocotools==2.0.6" in your requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants