今年刚出的视频目标检测(VID)算法yoloV环境安装出现问题
下载后安装环境直到最后一步
pip3 install -v -e .
出现了问题,报这个错误:
请问下大家有谁安装成功了可以帮忙解答一下吗?
我按照
python setup.py develop
这个错误进行百度,尝试了都没效果。
pip3 install -v -e .
出现了问题,报这个错误:
请问下大家有谁安装成功了可以帮忙解答一下吗?
python setup.py develop
这个错误进行百度,尝试了都没效果。
破案了!果然查错还是不能图省事,只看最后的错误类型和总结,要一行一行的看错误代码,逐个解决问题,哪怕是warning(这个错误就是warning导致的)
============以上为更新,以下为原文===============
具体报错如下
Using pip 22.3.1 from /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/pip (python 3.7)
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///data/cch/YOLOV-master
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-3pmxrz2p/yolox.egg-info
writing /tmp/pip-pip-egg-info-3pmxrz2p/yolox.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-3pmxrz2p/yolox.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-3pmxrz2p/yolox.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-3pmxrz2p/yolox.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-3pmxrz2p/yolox.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-3pmxrz2p/yolox.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.cu' under directory 'yolox'
warning: no files found matching '*.cuh' under directory 'yolox'
warning: no files found matching '*.cc' under directory 'yolox'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-pip-egg-info-3pmxrz2p/yolox.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (1.21.6)
Requirement already satisfied: torch==1.9.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (1.9.0)
Requirement already satisfied: opencv_python in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (4.6.0.66)
Requirement already satisfied: loguru in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (0.6.0)
Requirement already satisfied: scikit-image in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (0.19.3)
Requirement already satisfied: tqdm in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (4.64.1)
Requirement already satisfied: torchvision>=0.10.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (0.10.0)
Requirement already satisfied: Pillow in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (9.3.0)
Requirement already satisfied: thop in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (0.1.1.post2209072238)
Requirement already satisfied: ninja in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (1.11.1)
Requirement already satisfied: tabulate in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (0.9.0)
Requirement already satisfied: tensorboard in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (2.11.0)
Requirement already satisfied: lap in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (0.4.0)
Requirement already satisfied: motmetrics in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (1.4.0)
Requirement already satisfied: filterpy in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (1.4.5)
Requirement already satisfied: h5py in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (3.7.0)
Requirement already satisfied: sklearn in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (0.0.post1)
Requirement already satisfied: pycocotools>=2.0.2 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (2.0.6)
Requirement already satisfied: onnx==1.8.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (1.8.1)
Requirement already satisfied: onnxruntime==1.8.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (1.8.0)
Requirement already satisfied: onnx-simplifier==0.3.5 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from yolox==0.3.0) (0.3.5)
Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from onnx==1.8.1->yolox==0.3.0) (4.4.0)
Requirement already satisfied: protobuf in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from onnx==1.8.1->yolox==0.3.0) (3.20.3)
Requirement already satisfied: six in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from onnx==1.8.1->yolox==0.3.0) (1.16.0)
Requirement already satisfied: onnxoptimizer>=0.2.5 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from onnx-simplifier==0.3.5->yolox==0.3.0) (0.3.2)
Requirement already satisfied: flatbuffers in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from onnxruntime==1.8.0->yolox==0.3.0) (22.12.6)
Requirement already satisfied: matplotlib>=2.1.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from pycocotools>=2.0.2->yolox==0.3.0) (3.5.3)
Requirement already satisfied: scipy in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from filterpy->yolox==0.3.0) (1.7.3)
Requirement already satisfied: xmltodict>=0.12.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from motmetrics->yolox==0.3.0) (0.13.0)
Requirement already satisfied: pandas>=0.23.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from motmetrics->yolox==0.3.0) (1.3.5)
Requirement already satisfied: imageio>=2.4.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from scikit-image->yolox==0.3.0) (2.23.0)
Requirement already satisfied: packaging>=20.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from scikit-image->yolox==0.3.0) (22.0)
Requirement already satisfied: tifffile>=2019.7.26 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from scikit-image->yolox==0.3.0) (2021.11.2)
Requirement already satisfied: PyWavelets>=1.1.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from scikit-image->yolox==0.3.0) (1.3.0)
Requirement already satisfied: networkx>=2.2 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from scikit-image->yolox==0.3.0) (2.6.3)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (0.6.1)
Requirement already satisfied: absl-py>=0.4 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (1.3.0)
Requirement already satisfied: markdown>=2.6.8 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (3.4.1)
Requirement already satisfied: wheel>=0.26 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (0.38.4)
Requirement already satisfied: requests<3,>=2.21.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (2.28.1)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (0.4.6)
Requirement already satisfied: werkzeug>=1.0.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (2.2.2)
Requirement already satisfied: setuptools>=41.0.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (65.6.3)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (1.8.1)
Requirement already satisfied: google-auth<3,>=1.6.3 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (2.15.0)
Requirement already satisfied: grpcio>=1.24.3 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from tensorboard->yolox==0.3.0) (1.51.1)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from google-auth<3,>=1.6.3->tensorboard->yolox==0.3.0) (0.2.8)
Requirement already satisfied: rsa<5,>=3.1.4 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from google-auth<3,>=1.6.3->tensorboard->yolox==0.3.0) (4.9)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from google-auth<3,>=1.6.3->tensorboard->yolox==0.3.0) (5.2.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard->yolox==0.3.0) (1.3.1)
Requirement already satisfied: importlib-metadata>=4.4 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from markdown>=2.6.8->tensorboard->yolox==0.3.0) (5.2.0)
Requirement already satisfied: fonttools>=4.22.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from matplotlib>=2.1.0->pycocotools>=2.0.2->yolox==0.3.0) (4.38.0)
Requirement already satisfied: python-dateutil>=2.7 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from matplotlib>=2.1.0->pycocotools>=2.0.2->yolox==0.3.0) (2.8.2)
Requirement already satisfied: pyparsing>=2.2.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from matplotlib>=2.1.0->pycocotools>=2.0.2->yolox==0.3.0) (3.0.9)
Requirement already satisfied: cycler>=0.10 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from matplotlib>=2.1.0->pycocotools>=2.0.2->yolox==0.3.0) (0.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from matplotlib>=2.1.0->pycocotools>=2.0.2->yolox==0.3.0) (1.4.4)
Requirement already satisfied: pytz>=2017.3 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from pandas>=0.23.1->motmetrics->yolox==0.3.0) (2022.7)
Requirement already satisfied: certifi>=2017.4.17 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from requests<3,>=2.21.0->tensorboard->yolox==0.3.0) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from requests<3,>=2.21.0->tensorboard->yolox==0.3.0) (1.26.13)
Requirement already satisfied: charset-normalizer<3,>=2 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from requests<3,>=2.21.0->tensorboard->yolox==0.3.0) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from requests<3,>=2.21.0->tensorboard->yolox==0.3.0) (3.4)
Requirement already satisfied: MarkupSafe>=2.1.1 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from werkzeug>=1.0.1->tensorboard->yolox==0.3.0) (2.1.1)
Requirement already satisfied: zipp>=0.5 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard->yolox==0.3.0) (3.11.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard->yolox==0.3.0) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in /home/seg/anaconda3/envs/cch/lib/python3.7/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard->yolox==0.3.0) (3.2.2)
Installing collected packages: yolox
Running setup.py develop for yolox
Running command python setup.py develop
running develop
running egg_info
writing yolox.egg-info/PKG-INFO
writing dependency_links to yolox.egg-info/dependency_links.txt
writing requirements to yolox.egg-info/requires.txt
writing top-level names to yolox.egg-info/top_level.txt
reading manifest file 'yolox.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
warning: no files found matching '*.cu' under directory 'yolox'
warning: no files found matching '*.cuh' under directory 'yolox'
warning: no files found matching '*.cc' under directory 'yolox'
adding license file 'LICENSE'
writing manifest file 'yolox.egg-info/SOURCES.txt'
running build_ext
building 'yolox.layers.fast_cocoeval' extension
Emitting ninja build file /data/cch/YOLOV-master/build/temp.linux-x86_64-cpython-37/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/utils/cpp_extension.py:312: UserWarning:
!! WARNING !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (g++ 4.8.5) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 5.0 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.
See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 5 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! WARNING !!
warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/utils/cpp_extension.py:287: UserWarning:
!! WARNING !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (c++) is not compatible with the compiler Pytorch was
built with for this platform, which is g++ on linux. Please
use g++ to to compile your extension. Alternatively, you may
compile PyTorch from source using c++, and then you can also use
c++ to compile your extension.
See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help
with compiling PyTorch from source.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! WARNING !!
platform=sys.platform))
[1/1] c++ -MMD -MF /data/cch/YOLOV-master/build/temp.linux-x86_64-cpython-37/yolox/layers/cocoeval/cocoeval.o.d -pthread -B /home/seg/anaconda3/envs/cch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iyolox/layers/cocoeval -I/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/include -I/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/include/TH -I/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/include/THC -I/home/seg/anaconda3/envs/cch/include/python3.7m -c -c /data/cch/YOLOV-master/yolox/layers/cocoeval/cocoeval.cpp -o /data/cch/YOLOV-master/build/temp.linux-x86_64-cpython-37/yolox/layers/cocoeval/cocoeval.o -O3 -std=c++14 -g -Wno-reorder -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=fast_cocoeval -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /data/cch/YOLOV-master/build/temp.linux-x86_64-cpython-37/yolox/layers/cocoeval/cocoeval.o
c++ -MMD -MF /data/cch/YOLOV-master/build/temp.linux-x86_64-cpython-37/yolox/layers/cocoeval/cocoeval.o.d -pthread -B /home/seg/anaconda3/envs/cch/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iyolox/layers/cocoeval -I/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/include -I/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/include/TH -I/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/include/THC -I/home/seg/anaconda3/envs/cch/include/python3.7m -c -c /data/cch/YOLOV-master/yolox/layers/cocoeval/cocoeval.cpp -o /data/cch/YOLOV-master/build/temp.linux-x86_64-cpython-37/yolox/layers/cocoeval/cocoeval.o -O3 -std=c++14 -g -Wno-reorder -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=fast_cocoeval -D_GLIBCXX_USE_CXX11_ABI=0
c++: 错误:unrecognized command line option ‘-std=c++14’
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1672, in _run_ninja_build
env=env)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/data/cch/YOLOV-master/setup.py", line 86, in <module>
"Tracker": "https://github.com/Megvii-BaseDetection/YOLOX/issues",
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
self.build_extensions()
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 709, in build_extensions
build_ext.build_extensions(self)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 468, in build_extensions
self._build_extensions_serial()
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 494, in _build_extensions_serial
self.build_extension(ext)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 556, in build_extension
depends=ext.depends,
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 539, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1360, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/seg/anaconda3/envs/cch/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1682, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/seg/anaconda3/envs/cch/bin/python3.7 -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/data/cch/YOLOV-master/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: /data/cch/YOLOV-master/
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.