프로그래밍/데이터 사이언스 공부

cython_bbox 패키지 설치 오류

이자다 2023. 10. 19. 11:54
반응형
Collecting cython_bbox
  Using cached cython_bbox-0.1.3.tar.gz (41 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\USER\AppData\Local\Temp\pip-build-env-mta_np9i\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "C:\Users\USER\AppData\Local\Temp\pip-build-env-mta_np9i\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "C:\Users\USER\AppData\Local\Temp\pip-build-env-mta_np9i\overlay\Lib\site-packages\setuptools\build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "C:\Users\USER\AppData\Local\Temp\pip-build-env-mta_np9i\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 10, in <module>
      ModuleNotFoundError: No module named 'Cython'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
...
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

요구하는 Cython 패키지를 설치해도 cython-bbox 설치에 오류가 생긴다

 

 

 

https://ban2aru.tistory.com/51

 

[Python] cython-bbox 설치 윈도우 오류 Building wheel for cython-bbox (setup.py) ... error

cython-bbox를 단순히 pip install 명령어로 사용하면 윈도우에서 오류가 발생하는 것으로 보인다. 이를 해결하기 위해 github 파일을 받는 방식으로 활용하였음. git clone https://github.com/samson-wang/cython_bbox

ban2aru.tistory.com

git clone https://github.com/samson-wang/cython_bbox
cd cython_bbox
pip install -e ./

 

위 블로그에선 깃허브 파일로 받아서 이를 pip3 install 하였고 이를 따라했더니 잘 되었다.

반응형