安装mmdet2.x
的时候报错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
Using pip 21.2.2 from /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pip (python 3.6) Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Obtaining file:///media/mcj/mcj/mmdet2.x Running command python setup.py egg_info running egg_info creating /tmp/pip-pip-egg-info-mg9omfvz/mmdet.egg-info writing /tmp/pip-pip-egg-info-mg9omfvz/mmdet.egg-info/PKG-INFO writing dependency_links to /tmp/pip-pip-egg-info-mg9omfvz/mmdet.egg-info/dependency_links.txt writing requirements to /tmp/pip-pip-egg-info-mg9omfvz/mmdet.egg-info/requires.txt writing top-level names to /tmp/pip-pip-egg-info-mg9omfvz/mmdet.egg-info/top_level.txt writing manifest file '/tmp/pip-pip-egg-info-mg9omfvz/mmdet.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-pip-egg-info-mg9omfvz/mmdet.egg-info/SOURCES.txt' writing manifest file '/tmp/pip-pip-egg-info-mg9omfvz/mmdet.egg-info/SOURCES.txt' Link requires a different Python (3.6.13 not in: '>=3.7'): https://pypi.tuna.tsinghua.edu.cn/packages/05/3d/45415c62fe3f3e7f0dd0b06b8edb0ed2f3dd5f9ceedb7874642976cb3624/matplotlib-3.4.0.tar.gz#sha256=424ddb3422c65b284a38a97eb48f5cb64b66a44a773e0c71281a347f1738f146 (from https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/) (requires-python:>=3.7) Link requires a different Python (3.6.13 not in: '>=3.7'): https://pypi.tuna.tsinghua.edu.cn/packages/9c/e6/209705cb9e41d3a6f38b2782c5fdc55e335e7205eb0eca028485a6666427/matplotlib-3.4.0rc1.tar.gz#sha256=f4ee7bb15bf01cd4c6352f8343f4d27fd8ad36bb88640eb244525fe648005d19 (from https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/) (requires-python:>=3.7) Link requires a different Python (3.6.13 not in: '>=3.7'): https://pypi.tuna.tsinghua.edu.cn/packages/6c/75/a2546672729a27e3ef287c42835875c6ae2ff4730eca912aa0a035853267/matplotlib-3.4.0rc2.tar.gz#sha256=06afea42f06489a5c2bdf9b39ac00c8cf3730d3cce53f652dc3a35ac14cd8a6a (from https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/) (requires-python:>=3.7) Link requires a different Python (3.6.13 not in: '>=3.7'): https://pypi.tuna.tsinghua.edu.cn/packages/cb/30/984e51012b40e75bbc54cadac5592db6ec036c689cd7b3cd1aa665d00355/matplotlib-3.4.0rc3.tar.gz#sha256=116166d4ff675df68c2cf3e989b5b54d4639475d263badf4b4d4c9314d3a44c5 (from https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/) (requires-python:>=3.7) Link requires a different Python (3.6.13 not in: '>=3.7'): https://pypi.tuna.tsinghua.edu.cn/packages/84/61/28711c7773a3a47c7f798cafc219968aab78d260c0d674696a077432bbd4/matplotlib-3.4.1.tar.gz#sha256=84d4c4f650f356678a5d658a43ca21a41fca13f9b8b00169c0b76e6a6a948908 (from https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/) (requires-python:>=3.7) Link requires a different Python (3.6.13 not in: '>=3.7'): https://pypi.tuna.tsinghua.edu.cn/packages/60/d3/286925802edaeb0b8834425ad97c9564ff679eb4208a184533969aa5fc29/matplotlib-3.4.2.tar.gz#sha256=d8d994cefdff9aaba45166eb3de4f5211adb4accac85cbf97137e98f26ea0219 (from https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/) (requires-python:>=3.7) Link requires a different Python (3.6.13 not in: '>=3.7'): https://pypi.tuna.tsinghua.edu.cn/packages/21/37/197e68df384ff694f78d687a49ad39f96c67b8d75718bc61503e1676b617/matplotlib-3.4.3.tar.gz#sha256=fc4f526dfdb31c9bd6b8ca06bf9fab663ca12f3ec9cdf4496fb44bc680140318 (from https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/) (requires-python:>=3.7) Collecting matplotlib Using cached https://pypi.tuna.tsinghua.edu.cn/packages/09/03/b7b30fa81cb687d1178e085d0f01111ceaea3bf81f9330c937fb6f6c8ca0/matplotlib-3.3.4-cp36-cp36m-manylinux1_x86_64.whl (11.5 MB) Collecting mmpycocotools Downloading https://pypi.tuna.tsinghua.edu.cn/packages/99/51/1bc1d79f296347eeb2d1a2e0606885ab1e4682833bf275fd39c189952e26/mmpycocotools-12.0.3.tar.gz (23 kB) Running command python setup.py egg_info running egg_info creating /tmp/pip-pip-egg-info-ikbdlmgn/mmpycocotools.egg-info writing /tmp/pip-pip-egg-info-ikbdlmgn/mmpycocotools.egg-info/PKG-INFO writing dependency_links to /tmp/pip-pip-egg-info-ikbdlmgn/mmpycocotools.egg-info/dependency_links.txt writing requirements to /tmp/pip-pip-egg-info-ikbdlmgn/mmpycocotools.egg-info/requires.txt writing top-level names to /tmp/pip-pip-egg-info-ikbdlmgn/mmpycocotools.egg-info/top_level.txt writing manifest file '/tmp/pip-pip-egg-info-ikbdlmgn/mmpycocotools.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-pip-egg-info-ikbdlmgn/mmpycocotools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file '/tmp/pip-pip-egg-info-ikbdlmgn/mmpycocotools.egg-info/SOURCES.txt' Requirement already satisfied: numpy in /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages (from mmdet==2.7.0) (1.19.5) Requirement already satisfied: six in /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages (from mmdet==2.7.0) (1.16.0) Collecting terminaltables Using cached terminaltables-3.1.0-py3-none-any.whl Requirement already satisfied: pillow>=6.2.0 in /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages (from matplotlib->mmdet==2.7.0) (8.3.1) Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) Collecting cycler>=0.10 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl (6.5 kB) Collecting python-dateutil>=2.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting kiwisolver>=1.0.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a7/1b/cbd8ae738719b5f41592a12057ef5442e2ed5f5cb5451f8fc7e9f8875a1a/kiwisolver-1.3.1-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB) Requirement already satisfied: setuptools>=18.0 in /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages (from mmpycocotools->mmdet==2.7.0) (52.0.0.post20210125) Collecting cython>=0.27.3 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d7/04/5890b30102782a3ec9970df3c10f024298803d89624ee23cf75d09bd2548/Cython-0.29.24-cp36-cp36m-manylinux1_x86_64.whl (2.0 MB) Building wheels for collected packages: mmpycocotools Running command /home/sipl/anaconda3/envs/mm2/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ky808s14/mmpycocotools_11c0b6d0e8734748a43957d7aa1375e4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ky808s14/mmpycocotools_11c0b6d0e8734748a43957d7aa1375e4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-y1tvzv21 running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/pycocotools copying pycocotools/coco.py -> build/lib.linux-x86_64-3.6/pycocotools copying pycocotools/cocoeval.py -> build/lib.linux-x86_64-3.6/pycocotools copying pycocotools/__init__.py -> build/lib.linux-x86_64-3.6/pycocotools copying pycocotools/mask.py -> build/lib.linux-x86_64-3.6/pycocotools running build_ext building 'pycocotools._mask' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/common creating build/temp.linux-x86_64-3.6/pycocotools gcc -pthread -B /home/sipl/anaconda3/envs/mm2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/numpy/core/include -Icommon -I/home/sipl/anaconda3/envs/mm2/include/python3.6m -c common/maskApi.c -o build/temp.linux-x86_64-3.6/common/maskApi.o common/maskApi.c: In function \u2018rleToBbox\u2019: common/maskApi.c:141:31: warning: \u2018xp\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized] if(j%2==0) xp=x; else if(xp<x) { ys=0; ye=h-1; } ^ gcc -pthread -B /home/sipl/anaconda3/envs/mm2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/numpy/core/include -Icommon -I/home/sipl/anaconda3/envs/mm2/include/python3.6m -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.6/pycocotools/_mask.o gcc: error: pycocotools/_mask.c: No such file or directory error: command 'gcc' failed with exit status 1 Building wheel for mmpycocotools (setup.py) ... error ERROR: Failed building wheel for mmpycocotools Running setup.py clean for mmpycocotools Running command /home/sipl/anaconda3/envs/mm2/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ky808s14/mmpycocotools_11c0b6d0e8734748a43957d7aa1375e4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ky808s14/mmpycocotools_11c0b6d0e8734748a43957d7aa1375e4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all running clean removing 'build/temp.linux-x86_64-3.6' (and everything under it) removing 'build/lib.linux-x86_64-3.6' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.6' does not exist -- can't clean it removing 'build' Failed to build mmpycocotools Installing collected packages: python-dateutil, pyparsing, kiwisolver, cycler, matplotlib, cython, terminaltables, mmpycocotools, mmdet changing mode of /home/sipl/anaconda3/envs/mm2/bin/cygdb to 775 changing mode of /home/sipl/anaconda3/envs/mm2/bin/cython to 775 changing mode of /home/sipl/anaconda3/envs/mm2/bin/cythonize to 775 Running command /home/sipl/anaconda3/envs/mm2/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ky808s14/mmpycocotools_11c0b6d0e8734748a43957d7aa1375e4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ky808s14/mmpycocotools_11c0b6d0e8734748a43957d7aa1375e4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-d7u4sdir/install-record.txt --single-version-externally-managed --compile --install-headers /home/sipl/anaconda3/envs/mm2/include/python3.6m/mmpycocotools running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/pycocotools copying pycocotools/coco.py -> build/lib.linux-x86_64-3.6/pycocotools copying pycocotools/cocoeval.py -> build/lib.linux-x86_64-3.6/pycocotools copying pycocotools/__init__.py -> build/lib.linux-x86_64-3.6/pycocotools copying pycocotools/mask.py -> build/lib.linux-x86_64-3.6/pycocotools running build_ext cythoning pycocotools/_mask.pyx to pycocotools/_mask.c /home/sipl/anaconda3/envs/mm2/lib/python3.6/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 release! File: /tmp/pip-install-ky808s14/mmpycocotools_11c0b6d0e8734748a43957d7aa1375e4/pycocotools/_mask.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'pycocotools._mask' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/common creating build/temp.linux-x86_64-3.6/pycocotools gcc -pthread -B /home/sipl/anaconda3/envs/mm2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/numpy/core/include -Icommon -I/home/sipl/anaconda3/envs/mm2/include/python3.6m -c common/maskApi.c -o build/temp.linux-x86_64-3.6/common/maskApi.o common/maskApi.c: In function \u2018rleToBbox\u2019: common/maskApi.c:141:31: warning: \u2018xp\u2019 may be used uninitialized in this function [-Wmaybe-uninitialized] if(j%2==0) xp=x; else if(xp<x) { ys=0; ye=h-1; } ^ gcc -pthread -B /home/sipl/anaconda3/envs/mm2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/numpy/core/include -Icommon -I/home/sipl/anaconda3/envs/mm2/include/python3.6m -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.6/pycocotools/_mask.o In file included from /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0, from /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4, from pycocotools/_mask.c:620: /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it with " \ ^ gcc -pthread -shared -B /home/sipl/anaconda3/envs/mm2/compiler_compat -L/home/sipl/anaconda3/envs/mm2/lib -Wl,-rpath=/home/sipl/anaconda3/envs/mm2/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/common/maskApi.o build/temp.linux-x86_64-3.6/pycocotools/_mask.o -o build/lib.linux-x86_64-3.6/pycocotools/_mask.cpython-36m-x86_64-linux-gnu.so running install_lib creating /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools copying build/lib.linux-x86_64-3.6/pycocotools/_mask.cpython-36m-x86_64-linux-gnu.so -> /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools copying build/lib.linux-x86_64-3.6/pycocotools/coco.py -> /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools copying build/lib.linux-x86_64-3.6/pycocotools/cocoeval.py -> /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools copying build/lib.linux-x86_64-3.6/pycocotools/__init__.py -> /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools copying build/lib.linux-x86_64-3.6/pycocotools/mask.py -> /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools byte-compiling /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools/coco.py to coco.cpython-36.pyc byte-compiling /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools/cocoeval.py to cocoeval.cpython-36.pyc byte-compiling /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools/__init__.py to __init__.cpython-36.pyc byte-compiling /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/pycocotools/mask.py to mask.cpython-36.pyc running install_egg_info running egg_info writing mmpycocotools.egg-info/PKG-INFO writing dependency_links to mmpycocotools.egg-info/dependency_links.txt writing requirements to mmpycocotools.egg-info/requires.txt writing top-level names to mmpycocotools.egg-info/top_level.txt reading manifest file 'mmpycocotools.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'mmpycocotools.egg-info/SOURCES.txt' Copying mmpycocotools.egg-info to /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/mmpycocotools-12.0.3-py3.6.egg-info running install_scripts writing list of installed files to '/tmp/pip-record-d7u4sdir/install-record.txt' Running setup.py install for mmpycocotools ... done DEPRECATION: mmpycocotools was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368. Running setup.py develop for mmdet Running command /home/sipl/anaconda3/envs/mm2/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/media/mcj/mcj/mmdet2.x/setup.py'"'"'; __file__='"'"'/media/mcj/mcj/mmdet2.x/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps running develop running egg_info creating mmdet.egg-info writing mmdet.egg-info/PKG-INFO writing dependency_links to mmdet.egg-info/dependency_links.txt writing requirements to mmdet.egg-info/requires.txt writing top-level names to mmdet.egg-info/top_level.txt writing manifest file 'mmdet.egg-info/SOURCES.txt' reading manifest file 'mmdet.egg-info/SOURCES.txt' writing manifest file 'mmdet.egg-info/SOURCES.txt' running build_ext Creating /home/sipl/anaconda3/envs/mm2/lib/python3.6/site-packages/mmdet.egg-link (link to .) Adding mmdet 2.7.0 to easy-install.pth file Installed /media/mcj/mcj/mmdet2.x Successfully installed cycler-0.10.0 cython-0.29.24 kiwisolver-1.3.1 matplotlib-3.3.4 mmdet-2.7.0 mmpycocotools-12.0.3 pyparsing-2.4.7 python-dateutil-2.8.2 terminaltables-3.1.0 |
其实后续可以不用管这个错误,对后面我们的使用是没有影响的。
本文最后更新于2021年8月23日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!