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.
For more information visit http://rptl.io/venv
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.
명령어 입력
rm /usr/lib/python3.11/EXTERNALLY-MANAGED
성공
root@localhost:/usr/share/GeoIP# pip install geoip2
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting geoip2
Downloading https://www.piwheels.org/simple/geoip2/geoip2-4.8.0-py2.py3-none-any.whl (27 kB)
Collecting aiohttp<4.0.0,>=3.6.2
Downloading aiohttp-3.9.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 7.2 MB/s eta 0:00:00
Collecting maxminddb<3.0.0,>=2.5.1
Downloading maxminddb-2.5.2.tar.gz (181 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.3/181.3 kB 7.1 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done