새소식

Programming/python

[python3][auto py to exe] 설치해보기

  • -

설치 자체는 쉽습니다!!(사실이라면 이런 글도 안썼음..)

python3 -m pip install auto-py-to-exe

 

이렇게 명령 내리면 2.42.0 버전이 설치됩니다(되어야 합니다)

 

그리고 어렵습니다..

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
autoit-ripper 1.1.0 requires pefile==2019.4.18, but you have pefile 2023.2.7 which is incompatible.
Successfully installed Eel-0.16.0 altgraph-0.17.4 auto-py-to-exe-2.42.0 bottle-0.12.25 bottle-websocket-0.2.9 cffi-1.16.0 gevent-23.9.1 gevent-websocket-0.10.1 importlib-metadata-7.0.1 packaging-23.2 pefile-2023.2.7 pycparser-2.21 pyinstaller-6.3.0 pyinstaller-hooks-contrib-2024.0 pywin32-ctypes-0.2.2 whichcraft-0.6.1 zipp-3.17.0 zope.event-5.0 zope.interface-6.1

 

이 프로그램/패키지는 pyinstaller 6.3.0 를 의존하는데 둘 다 각각 pefile 패키지를 의존합니다.

문제는.. pyinstaller 6.3.0 은 22022.5.30 이상 버전을 autoit-ripper 1.1.0 은 2019.4.18 버전만 원한다는 것입니다. 빨간색 오류 메시지가 반겨주면 한마디가 생각날 거에요.

'어쩌라고!'

 

포기하려다가 그냥 접기에 짜증나서 왠지 autoit-ripper 1.1.0 의 의존성 pefile==2019.4.18 은 제작자의 꼬장이다 라는 생각이 들었습니다.

그 이후 버전 검증하기 귀찮으니까 업데이트 되던 말던 딱 이버전으로 고정할꺼야...

 

Everything 프로그램으로 autoit_ripper 를 찾았더니 Python39\site-packages 에 autoit_ripper 와 autoit_ripper-1.1.0.dist-info 가 나왔습니다.

이런 정보들은 pip 가 체크해주니 dist-info 를 찾아야 합니다.

 

그 안에 METADATA 파일을 열어서 pefile 이라고 찾아보면 Requires-Dist: pefile (==2019.4.18) 이라고 당당하게 써져 있습니다. 저는 상위 버전 써도 별 문제 없을거야라는 마음으로 == 를 >= 로 고쳐주고 다시 pip install 명령을 내렸더니 정상으로 설치되었습니다!!

 

참고로 혹시 나중에 문제될 수도 있으니(pefile 내부가 많이 바뀌어서)  개발자가 유지보수 잘 해주기만을 바랍시다!!

Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.