pip install paddledet==2.0.1 -i https://mirror.baidu.com/pypi/simple --user
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = "C:\\Users\\guo'"'"'han'"'"'wei\\AppData\\Local\\Temp\\pip-install-hxdbue5u\\pycocotools_c97c58b1f870445b8315448b750d23e9\\setup.py"; __file__="C:\\Users\\guo'"'"'han'"'"'wei\\AppData\\Local\\Temp\\pip-install-hxdbue5u\\pycocotools_c97c58b1f870445b8315448b750d23e9\\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 'C:\Users\guo'"'"'han'"'"'wei\AppData\Local\Temp\pip-wheel-ay6mcbsr'
cwd: C:\Users\guo'han'wei\AppData\Local\Temp\pip-install-hxdbue5u\pycocotools_c97c58b1f870445b8315448b750d23e9\
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\__init__.py -> build\lib.win-amd64-3.8\pycocotools
running build_ext
cythoning pycocotools/_mask.pyx to pycocotools\_mask.c
C:\ProgramData\Anaconda3\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 release! File: C:\Users\guo'han'wei\AppData\Local\Temp\pip-install-hxdbue5u\pycocotools_c97c58b1f870445b8315448b750d23e9\pycocotools\_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for pycocotools
这个是环境的问题……
哎,要装的那个软件名字打不出来……
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
其实这段已经告诉你怎么做了,百度一下
建议使用VS 一键安装 比较稳妥 因为有时候安装了也是不管用 c++环境 也不知道为啥
装这个 pycocotools 报的错,不行删了重装吧,我装过,也没让装c++环境啊
百度报错信息也经常能有收获