Q:

pip.config contains parsing errors

Whenever i try to use "pip install pathlib" (or any package) I get the following error.  The http address is correct, aswell as the host address.  Can anyone find the parsing error ? 
Configuration file could not be loaded. 
File contains parsing errors: /home/myself/.config/pip/pip.conf
[line  2]: '\textra-index-url = http://myaddress:8000\n'
[line  3]: '\ttrusted-host = myaddress\n'

Here is my configuration:
[global]
    extra-index-url = http://myaddress:8000
    trusted-host = myaddress

A:

Remove tabs at the beginning of the lines.  For configparser whitespaces at the beginning of a line means line continuation.