jessedp / pihole5-list-tool

A tool for quickly and easily bulk adding allow and ad/block lists to a Pi-hole 5 installation
MIT License
312 stars 18 forks source link

Won't accept Python version #24

Closed leopheard closed 4 years ago

leopheard commented 4 years ago

Environment

Describe the system on which this issue occurred: pihole5-list-tool (ex: 0.4.2, pip3 show pihole5-list-tool) : OS _(ex: Ubuntu 20.20, lsb_release -a) : Rasbpian 9.11 Python (ex: 3.8.2, python --version) : 3.8.0 Using Docker? No .....version (ex: 19.03.10, docker -v)_ :

Hi all,

So running Python -V gives "Python 3.8.0" but running sudo pip3 install pihole5-list-tool --upgrade produces "this tool requires 3.6 or greater, you are running 3.5.3". What am I doing wrong? I've just upgraded, followed the guide here: https://installvirtual.com/how-to-install-python-3-8-on-raspberry-pi-raspbian/ rebooted and it's still not showing the correct version?

jessedp commented 4 years ago

Step 6 is the "problem" and fix. When you did that it only changed it for the current user, not the root user, which is used when running sudo. You can verify that further by running sudo python -V.

At least 2 options: