[mythtv-users] Mythtv Python Error on build for Ubuntu 24.04
Nick Morrott
knowledgejunkie at gmail.com
Sun Apr 28 20:40:52 UTC 2024
On Sat, 27 Apr 2024 at 17:31, Ken Mandelberg <km at mathcs.emory.edu> wrote:
>
> I decided to try building Mythtv on a fresh Ubuntu 24.04 (just out). Ansible worked, and the make suceeded, but ran into an error in install
>
> make[1]: Entering directory '/home/km/mythgit/mythtv/mythtv/bindings/python'
> python3 -m pip install --no-build-isolation --no-cache-dir --no-index --disable-pip-version-check --no-deps --ignore-installed --find-links ./dist MythTV
> error: externally-managed-environment
>
> I see a lot of messages about this issue going back years for a lot of different applications, but never had it on a mythtv build. I get it that its just about a restriction in a system-wide install outside the package manner.
>
> Whats the fix specifically for the routine make install for Mythtv?
Two options when building from source (and not building deb packages):
*) Build inside a venv where pip can install modules to without warnings, or
*) If building outside a venv, add the `--break-system-packages`
option to the python3 -m pip install line to allow pip to install to
the system Python installations directories
Cheers,
Nick
More information about the mythtv-users
mailing list