본문 바로가기

개발

ASUS Thinker edge T pip3 install opencv-python

mendel@indigo-quill:~/sook-cctv$ sudo pip3 install opencv-python
Collecting opencv-python
  Downloading https://files.pythonhosted.org/packages/4a/e7/b70a2d9ab205110d715906fc8ec83fbb00404aeb3a37a0654fdb68eb0c8c/opencv-python-4.10.0.84.tar.gz (95.1MB)
    100% |████████████████████████████████| 95.1MB 4.2kB/s
  Installing build dependencies ... error
  Complete output from command /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4s1nykjs --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- cmake>=3.1 "numpy==1.13.3; python_version=='3.6' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.17.0; python_version=='3.7' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.17.5; python_version=='3.8' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.19.3; python_version<'3.9' and sys_platform == 'linux' and platform_machine == 'aarch64'" "numpy==1.21.0; python_version<'3.9' and sys_platform == 'darwin' and platform_machine == 'arm64'" "numpy>=2.0.0;  python_version>='3.9'" pip scikit-build>=0.14.0 setuptools==59.2.0:
  Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version < "3.9" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.9"' don't match your environment
  Collecting cmake>=3.1
    Downloading https://files.pythonhosted.org/packages/c6/91/03de4973e2f39b4384ac9867c67f03c825819ab397746ff3ea2e43f77d1b/cmake-3.31.0.1.tar.gz
  Exception:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main
      status = self.run(options, args)
    File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 338, in run
      resolver.resolve(requirement_set)
    File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 102, in resolve
      self._resolve_one(requirement_set, req)
    File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 256, in _resolve_one
      abstract_dist = self._get_abstract_dist_for(req_to_install)
    File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
      self.require_hashes
    File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 298, in prepare_linked_requirement
      abstract_dist.prep_for_dist(finder, self.build_isolation)
    File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 100, in prep_for_dist
      self.req.load_pyproject_toml()
    File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line 428, in load_pyproject_toml
      str(self)
    File "/usr/lib/python3/dist-packages/pip/_internal/pyproject.py", line 43, in load_pyproject_toml
      pp_toml = pytoml.load(f)
    File "/usr/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.whl/pytoml/parser.py", line 303, in load
      filename=fin.name)
    File "/usr/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.whl/pytoml/parser.py", line 370, in loads
      toks.expect('=', 'expected_equals')
    File "/usr/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.whl/pytoml/parser.py", line 250, in expect
      self.error(error_text)
    File "/usr/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.whl/pytoml/parser.py", line 253, in error
      raise TomlError(message, self.pos[0][0], self.pos[0][1], self._filename)
  pytoml.core.TomlError: /tmp/pip-install-7bm91dc6/cmake/pyproject.toml(56, 6): expected_equals

  ----------------------------------------
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4s1nykjs --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- cmake>=3.1 "numpy==1.13.3; python_version=='3.6' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.17.0; python_version=='3.7' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.17.5; python_version=='3.8' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.19.3; python_version<'3.9' and sys_platform == 'linux' and platform_machine == 'aarch64'" "numpy==1.21.0; python_version<'3.9' and sys_platform == 'darwin' and platform_machine == 'arm64'" "numpy>=2.0.0;  python_version>='3.9'" pip scikit-build>=0.14.0 setuptools==59.2.0" failed with error code 2 in None
mendel@indigo-quill:~/sook-cctv$
mendel@indigo-quill:~/sook-cctv$
mendel@indigo-quill:~/sook-cctv$
mendel@indigo-quill:~/sook-cctv$
mendel@indigo-quill:~/sook-cctv$ ^C
mendel@indigo-quill:~/sook-cctv$ ^C
mendel@indigo-quill:~/sook-cctv$ ^C
mendel@indigo-quill:~/sook-cctv$ ^C
mendel@indigo-quill:~/sook-cctv$ pip3 install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl (2.1MB)
    100% |████████████████████████████████| 2.1MB 190kB/s
Installing collected packages: pip
Successfully installed pip-24.0