well gave the sudo command and now i get this errors again.
pi@raspberrypi:~ $ sudo pip3 install --upgrade setuptools
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: setuptools in /usr/local/lib/python3.4/dist-packages (41.0.0)
pi@raspberrypi:~ $ sudo pip3 install -U pip
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: pip in /usr/local/lib/python3.4/dist-packages (19.0.3)
pi@raspberrypi:~ $ sudo pip3 install --user toonapilib -U
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting toonapilib
Downloading
https://files.pythonhosted.org/packages ... 2.3.tar.gz (68kB)
100% |????????????????????????????????| 71kB 3.0MB/s
Collecting requests~=2.21.0 (from toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (57kB)
100% |????????????????????????????????| 61kB 4.3MB/s
Collecting dateparser~=0.7.1 (from toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (351kB)
100% |????????????????????????????????| 358kB 3.5MB/s
Collecting cachetools~=3.1.0 (from toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl
Collecting coloredlogs~=10.0 (from toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (47kB)
100% |????????????????????????????????| 51kB 4.3MB/s
Collecting idna<2.9,>=2.5 (from requests~=2.21.0->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (58kB)
100% |????????????????????????????????| 61kB 4.6MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests~=2.21.0->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (133kB)
100% |????????????????????????????????| 143kB 4.7MB/s
Collecting urllib3<1.25,>=1.21.1 (from requests~=2.21.0->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (118kB)
100% |????????????????????????????????| 122kB 4.7MB/s
Collecting certifi>=2017.4.17 (from requests~=2.21.0->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (158kB)
100% |????????????????????????????????| 163kB 4.6MB/s
Collecting pytz (from dateparser~=0.7.1->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (510kB)
100% |????????????????????????????????| 512kB 3.5MB/s
Collecting python-dateutil (from dateparser~=0.7.1->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (226kB)
100% |????????????????????????????????| 235kB 4.4MB/s
Collecting tzlocal (from dateparser~=0.7.1->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... 5.1.tar.gz
Collecting regex (from dateparser~=0.7.1->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... .12.tar.gz (644kB)
100% |????????????????????????????????| 645kB 3.3MB/s
Collecting humanfriendly>=4.7 (from coloredlogs~=10.0->toonapilib)
Downloading
https://files.pythonhosted.org/packages ... ne-any.whl (73kB)
100% |????????????????????????????????| 81kB 4.9MB/s
Requirement already satisfied, skipping upgrade: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->dateparser~=0.7.1->toonapilib) (1.8.0)
Installing collected packages: idna, chardet, urllib3, certifi, requests, pytz, python-dateutil, tzlocal, regex, dateparser, cachetools, humanfriendly, coloredlogs, toonapilib
The script chardetect is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for tzlocal ... done
Running setup.py install for regex ... done
The script humanfriendly is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The script coloredlogs is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for toonapilib ... done
Successfully installed cachetools-3.1.0 certifi-2019.3.9 chardet-3.0.4 coloredlogs-10.0 dateparser-0.7.1 humanfriendly-4.18 idna-2.8 python-dateutil-2.8.0 pytz-2019.1 regex-2019.4.12 requests-2.21.0 toonapilib-3.2.3 tzlocal-1.5.1 urllib3-1.24.1
pi@raspberrypi:~ $
strange… where does these come from?