jdyjjj / All-in-One-Gait

TrackGait is a sub project of OpenGait. Implemented a gait recognition system.
74 stars 12 forks source link

Environment installation error #4

Closed Radleye closed 1 year ago

Radleye commented 1 year ago

when I run pip install -r requirements.txt would throw the following error: Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB) Building wheels for collected packages: filterpy, lap, future, ffmpy Building wheel for filterpy (setup.py) ... done Created wheel for filterpy: filename=filterpy-1.4.5-py3-none-any.whl size=110458 sha256=e089ab5ce0cd3bc72b62478478807aa70384bfb90adb7b2b3ba313ad653a08a9 Stored in directory: /home/shaofanli/.cache/pip/wheels/b9/b9/ac/fb6fb0f402ab03974d92dddc9ecab42de28e62af7258388955 Building wheel for lap (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [13 lines of output] Partial import of lap during the build process. Traceback (most recent call last): File "/tmp/pip-install-t9d1exfh/lap_08a81e28e0b041cd928e967e84257d55/setup.py", line 127, in get_numpy_status import numpy ModuleNotFoundError: No module named 'numpy' Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-t9d1exfh/lap_08a81e28e0b041cd928e967e84257d55/setup.py", line 236, in setup_package() File "/tmp/pip-install-t9d1exfh/lap_08a81e28e0b041cd928e967e84257d55/setup.py", line 220, in setup_package raise ImportError('lap requires numpy, ' ImportError: lap requires numpy, please "pip install numpy". [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for lap Running setup.py clean for lap Building wheel for future (setup.py) ... done Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492025 sha256=e9a457b152d4cb7689d82bd3d5da184930883d2b926344a6f6feae722d108f64 Stored in directory: /home/shaofanli/.cache/pip/wheels/bd/80/0f/e0251dfe9909851d703828808082d75a61e5e6952448133861 Building wheel for ffmpy (setup.py) ... done Created wheel for ffmpy: filename=ffmpy-0.3.0-py3-none-any.whl size=4693 sha256=6a5fb46a85ab4633cc4ef5eef73d39ae518642667bd2e7410b0c36fa53d46bfd Stored in directory: /home/shaofanli/.cache/pip/wheels/10/a9/5f/210a8ccdaf209be121a0d1b56ae7033f8749243cc787a58136 Successfully built filterpy future ffmpy Failed to build lap

jdyjjj commented 1 year ago

Maybe you can "pip install numpy"first. Then try "pip install -r requirements.txt "

Radleye commented 1 year ago

I tried it as you suggested, but a new problem appeared: Building wheels for collected packages: lap Building wheel for lap (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [330 lines of output] Partial import of lap during the build process. /tmp/pip-install-suymcc94/lap_7e092b9eae1743b8ab49ff429dd9deed/setup.py:223: DeprecationWarning:

    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
    of the deprecation of `distutils` itself. It will be removed for
    Python >= 3.12. For older Python versions it will remain present.
    It is recommended to use `setuptools < 60.0` for those Python versions.
    For more details, see:
      https://numpy.org/devdocs/reference/distutils_status_migration.html

    from numpy.distutils.core import setup
  Generating cython files
  running bdist_wheel
  running build
  running config_cc
  INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  INFO: build_src
  INFO: building extension "lap._lapjv" sources
  INFO: building data_files sources
  INFO: build_src: building npy-pkg config files
  /home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
  !!

          ********************************************************************************
          Please avoid running ``setup.py`` directly.
          Instead, use pypa/build, pypa/installer, pypa/build or
          other standards-based tools.

          See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
          ********************************************************************************

  !!
    self.initialize_options()
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-310
  creating build/lib.linux-x86_64-cpython-310/lap
  copying lap/lapmod.py -> build/lib.linux-x86_64-cpython-310/lap
  copying lap/__init__.py -> build/lib.linux-x86_64-cpython-310/lap
  running build_ext
  INFO: customize UnixCCompiler
  INFO: customize UnixCCompiler using build_ext
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-march=native)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  creating /tmp/tmp2rz1g6iq/home
  creating /tmp/tmp2rz1g6iq/home/shaofanli
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda/envs
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda/envs/torch_gait
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda/envs/torch_gait/lib
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda/envs/torch_gait/lib/python3.10
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages/numpy
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages/numpy/distutils
  creating /tmp/tmp2rz1g6iq/home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages/numpy/distutils/checks
  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-march=native'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-O3)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-O3'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-Werror)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-Werror'
  INFO: CCompilerOpt.__init__[1786] : check requested baseline
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-msse)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-msse2)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse2'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'SSE2' with flags (-msse -msse2)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'SSE' with flags (-msse -msse2)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -Werror'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-msse3)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse3'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'SSE3' with flags (-msse -msse2 -msse3)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -Werror'
  INFO: CCompilerOpt.__init__[1795] : check requested dispatch-able features
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mssse3)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mssse3'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-msse4.1)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse4.1'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mpopcnt)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mpopcnt'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-msse4.2)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse4.2'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'SSE42' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'SSSE3' with flags (-msse -msse2 -msse3 -mssse3)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'POPCNT' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'SSE41' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -Werror'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -Werror'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mf16c)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mf16c'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mfma)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mfma'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx2)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx2'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx512f -mno-mmx)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx512f -mno-mmx'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx512cd)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx512cd'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX512CD' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -Werror'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx512vl -mavx512bw -mavx512dq)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx512vl -mavx512bw -mavx512dq'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx512vnni)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx512vnni'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX512_CLX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX2' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2 -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX512F' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'F16C' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'FMA3' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -Werror'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx512ifma -mavx512vbmi)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx512ifma -mavx512vbmi'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX512_CNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -Werror'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX512_SKX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX512_ICL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdq -Werror'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx512er -mavx512pf)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx512er -mavx512pf'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX512_KNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -Werror'
  INFO: CCompilerOpt.cc_test_flags[1077] : testing flags (-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq'
  INFO: CCompilerOpt.feature_test[1551] : testing feature 'AVX512_KNM' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512er -mavx512pf -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq -Werror'
  INFO: CCompilerOpt.__init__[1807] : skip features (SSE3 SSE2 SSE) since its part of baseline
  INFO: CCompilerOpt.__init__[1811] : initialize targets groups
  INFO: CCompilerOpt.__init__[1813] : parse target group simd_test
  INFO: CCompilerOpt._parse_target_tokens[2024] : skip targets (VSX4 VX VSX2 XOP FMA4 VSX VXE2 NEON VSX3 VXE ASIMD) not part of baseline or dispatch-able features
  INFO: CCompilerOpt._parse_policy_not_keepbase[2136] : skip baseline features (SSE2)
  INFO: CCompilerOpt.generate_dispatch_header[2357] : generate CPU dispatch header: (build/src.linux-x86_64-3.10/numpy/distutils/include/npy_cpu_dispatch_config.h)
  WARN: CCompilerOpt.generate_dispatch_header[2366] : dispatch header dir build/src.linux-x86_64-3.10/numpy/distutils/include does not exist, creating it
  INFO: CCompilerOpt.feature_extra_checks[1631] : Testing extra checks for feature 'AVX512F' (AVX512F_REDUCE)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -Werror'
  INFO: CCompilerOpt.feature_extra_checks[1631] : Testing extra checks for feature 'AVX512_SKX' (AVX512BW_MASK AVX512DQ_MASK)
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
  INFO: C compiler: gcc -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
  INFO: customize UnixCCompiler
  INFO: customize UnixCCompiler using build_ext
  INFO: building 'lap._lapjv' extension
  INFO: compiling C++ sources
  INFO: C compiler: g++ -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC

  creating build/temp.linux-x86_64-cpython-310/lap
  INFO: compile options: '-I/home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages/numpy/core/include -Ilap -I/home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c'
  extra options: '-msse -msse2 -msse3'
  INFO: g++: lap/_lapjv.cpp
  INFO: g++: lap/lapjv.cpp
  INFO: g++: lap/lapmod.cpp

  [Errno 2] No such file or directory: 'g++'

  [Errno 2] No such file or directory: 'g++'

  [Errno 2] No such file or directory: 'g++'

  error: Command "g++ -pthread -B /home/shaofanli/.conda/envs/torch_gait/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -O2 -isystem /home/shaofanli/.conda/envs/torch_gait/include -fPIC -I/home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages/numpy/core/include -Ilap -I/home/shaofanli/.conda/envs/torch_gait/lib/python3.10/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -I/home/shaofanli/.conda/envs/torch_gait/include/python3.10 -c lap/_lapjv.cpp -o build/temp.linux-x86_64-cpython-310/lap/_lapjv.o -MMD -MF build/temp.linux-x86_64-cpython-310/lap/_lapjv.o.d -msse -msse2 -msse3" failed with exit status 127
  INFO:
  ########### EXT COMPILER OPTIMIZATION ###########
  INFO: Platform      :
    Architecture: x64
    Compiler    : gcc

  CPU baseline  :
    Requested   : 'min'
    Enabled     : SSE SSE2 SSE3
    Flags       : -msse -msse2 -msse3
    Extra checks: none

  CPU dispatch  :
    Requested   : 'max -xop -fma4'
    Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
    Generated   : none
  INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /tmp/pip-install-suymcc94/lap_7e092b9eae1743b8ab49ff429dd9deed/build/temp.linux-x86_64-cpython-310/ccompiler_opt_cache_ext.py
  [end of output]

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

Radleye commented 1 year ago

sloved after install g++