반응형
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.
× 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
최신 버전으로 설치하면 오류가 해결됩니다.
반응형
'Windows' 카테고리의 다른 글
AULA F75 키보드 관련 (2) | 2024.11.26 |
---|---|
Visual Studio 2022 Professional "Microsoft.VisualStudio.Validation" 오류 (12) | 2024.10.25 |
selenium 으로 네이버 폐지 줍기 (0) | 2024.01.17 |
강원전자 NM-LAD03 사용기 (2) | 2023.09.13 |
windows11 wsl 관련 (0) | 2023.08.24 |