[python] PyInstaller. Please `conda remove typing` then try again.

bokey·2022년 11월 7일
0

Python Error Message

목록 보기
2/3

he 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please conda remove typing then try again.

conda activate 가상환경명
pip install pyinstaller
pyinstaller ~~.spec

Conda 환경에 pyinstaller를 설치하고 터미널에서 명령어를 실행했을 때,
[spec file 이용하여 pyinstaller로 패킹 시도 시 나타나는 typing package messgae]

PyInstaller. Please conda remove typing then try again.

message가 나타난다. typing을 제거하라는 메시지이므로 아래와 같이 제거하면 해결이 된다.

[pip uninstall 실행 화면]

conda 신경을 안 쓰고 반복적으로 일을 하다 환경 신경 못 쓰고 pyinstaller가 없는 conda에서
실행했을 때, 나타나는 오류 메시지인데 근본적인 원인을 파악하기 위해 자료를 찾아보면
typing과 백포트에 대해 언급한다.

typing은 아나콘다 웹 페이지에서 확인 가능하다.
ANACONDA ORG - typing
백포트에 대해 아래 링크를 확인하는 게 좋다.
위키에서 설명하는 백포트
linux os에서의 백포트 개념은 아래 링크에서 잘 설명해주는데, 백포트에 대해 이해하는데 도움이 된다.
우분투 백포트에 대한 설명

상기 링크가 있지만 귀찮고 찾아보기 싫다면, pyinstaller를 이용할 때 충돌이 생겼다고 생각하고 넘어가도록 하자. 어차피 package uninstall로 간단히 해결 가능한 문제

profile
개발을 계발

0개의 댓글