I was starting to build mythtv from source on Endeavour OS which is a Arch
linux based distro. It complied fine but the sudo make install failed due
to new rules that are starting to creep into OSs. It will affect Debian,
Ubuntu, Fedora, Archlinux, etc very soon. It happened to me today on
something that last week didn't cause a problem.
The error is related to installing pip packages. Here is a the console
error I saw at the end of sudo make install:
make[1]: Entering directory '/home/jim/build/mythtv/mythtv/bindings/python'
python3 -m pip install --no-build-isolation --no-cache-dir --no-index
--disable-pip-version-check --no-deps --find-links ./dist MythTV error:
externally-managed-environment × This environment is externally managed ??>
To install Python packages system-wide, try 'pacman -S python-xyz', where
xyz is the package you are trying to install. If you wish to install a
non-Arch-packaged Python package, create a virtual environment using 'python
-m venv path/to/venv'. Then use path/to/venv/bin/python and
path/to/venv/bin/pip.
If you wish to install a non-Arch packaged Python application, it may be
easiest to use 'pipx install xyz', which will manage a virtual environment
for you. Make sure you have python-pipx installed via pacman. 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. make[1]: *** [Makefile:35: install]
Error 1
This link gives a better explanation of what’s going on:
https://pythonspeed.com/articles/externally-managed-environment-pep-668/
So my question is, now what?
Jim A
linux based distro. It complied fine but the sudo make install failed due
to new rules that are starting to creep into OSs. It will affect Debian,
Ubuntu, Fedora, Archlinux, etc very soon. It happened to me today on
something that last week didn't cause a problem.
The error is related to installing pip packages. Here is a the console
error I saw at the end of sudo make install:
make[1]: Entering directory '/home/jim/build/mythtv/mythtv/bindings/python'
python3 -m pip install --no-build-isolation --no-cache-dir --no-index
--disable-pip-version-check --no-deps --find-links ./dist MythTV error:
externally-managed-environment × This environment is externally managed ??>
To install Python packages system-wide, try 'pacman -S python-xyz', where
xyz is the package you are trying to install. If you wish to install a
non-Arch-packaged Python package, create a virtual environment using 'python
-m venv path/to/venv'. Then use path/to/venv/bin/python and
path/to/venv/bin/pip.
If you wish to install a non-Arch packaged Python application, it may be
easiest to use 'pipx install xyz', which will manage a virtual environment
for you. Make sure you have python-pipx installed via pacman. 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. make[1]: *** [Makefile:35: install]
Error 1
This link gives a better explanation of what’s going on:
https://pythonspeed.com/articles/externally-managed-environment-pep-668/
So my question is, now what?
Jim A