본문 바로가기

Windows

Black-Void-Zsh 설치 오류 관련

반응형

wsl에 Black-Void-Zsh를 설치하다 보면 다음과 같은 오류가 발생하는 경우가 있습니다.

 

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

 

python3 관련 오류입니다.

해결 하기 위해서는 다음과 같이 명령을 입력하면 됩니다.

 

sudo apt-get install python3-pip
sudo python3 -m pip config set global.break-system-packages true

 

사용자 환경에서도 적용합니다.

python3 -m pip config set global.break-system-packages true

 

설치하고 나면 thefuck 패키지에서 오류가 발생합니다.

pip install https://github.com/DJStompZone/thefuck/archive/master.zip

최신 버전으로 설치하면 오류가 해결됩니다.

 

반응형