Slimbook-Team / slimbookbattery

Slimbook Battery 4
https://slimbook.es/en/tutoriales/aplicaciones-slimbook/398-slimbook-battery-3-application-for-optimize-battery-of-your-laptop
GNU General Public License v3.0
252 stars 18 forks source link

The installation script uses pip without a venv what is forbidden in new Ubuntu and Fedora and give me error: #106

Closed MarSlimbook closed 2 weeks ago

MarSlimbook commented 1 year ago
          The problem is bigger. The installation script uses pip without a venv what is forbidden in new Ubuntu and Fedora and give me error:

error: externally-managed-environment

I have to modify this part of deploy.sh script:

if [[ ! $(pip3 install -r requirements.txt) ]]; then
        print_warn_bold "ERROR: Could not install Python dependencies."
        exit 1
fi

To this one (will work only for Ubuntu):

if [[ ! $(apt-get install python-gi-dev python-configparser) ]]; then
        print_warn_bold "ERROR: Could not install Python dependencies."
        exit 1
fi

Other solution could be to use pipx as described here: https://itsfoss.com/externally-managed-environment/

Originally posted by @cHunter789 in https://github.com/Slimbook-Team/slimbookbattery/issues/105#issuecomment-1564853826