motioneye icon indicating copy to clipboard operation
motioneye copied to clipboard

How to fix this mistake

Open Gurpreet83 opened this issue 2 years ago • 3 comments

Hello.

Newbie here, apologies if this is a dumb thing to ask..please can you help with the below error.

gurp@raspberrypi:~ $ sudo python3 -m pip install --pre motioneye Configuration file could not be loaded. While reading from '/etc/pip.conf' [line 3]: option 'extra-index-url' in section 'global' already exists

Gurpreet83 avatar Dec 31 '23 19:12 Gurpreet83

You probably ran one of the commands more than once. Run this: cat /etc/pip.conf The output should look something like this:

[global]
extra-index-url=https://www.piwheels.org/simple/
break-system-packages=true

If you have duplicate extra-index-url entries, you need to edit the conf and remove them.

sanch03 avatar Jan 05 '24 08:01 sanch03

I guess you ran the related command from the readme doubled. We should probably either add a grep ... || sed ... check for all of them, or just show the content of the config files.

MichaIng avatar Jan 05 '24 16:01 MichaIng