Issue - Gihub action 오류 - venv 적용

🏷️ github actions

수정일 : 2024-12-05


문제상황

  • TIL 블로그 자동 배포 github action이 잘 작동하다가 실패한다.

에러로그

 1error: externally-managed-environment
 2
 3× This environment is externally managed
 4╰─> To install Python packages system-wide, try apt install
 5	python3-xyz, where xyz is the package you are trying to
 6	install.
 7
 8	If you wish to install a non-Debian-packaged Python package,
 9	create a virtual environment using python3 -m venv path/to/venv.
10	Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
11	sure you have python3-full installed.
12
13	If you wish to install a non-Debian packaged Python application,
14	it may be easiest to use pipx install xyz, which will manage a
15	virtual environment for you. Make sure you have pipx installed.
16
17	See /usr/share/doc/python3.11/README.venv for more information.

해결방법