From 8eb67e2a3aa5b2db6a386460f94e15cc91d8d556 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 10 Nov 2023 04:48:45 +0100 Subject: [PATCH] python3 -m venv ~/.venvs/astro --- install.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 4c52a539..923b794a 100755 --- a/install.sh +++ b/install.sh @@ -131,16 +131,19 @@ echo "########################### ♥BOX" sudo ln -f -s /usr/bin/python3 /usr/bin/python echo 'export PATH=$PATH:$HOME/.local/bin' >> ~/.bashrc && source ~/.bashrc; echo "<<< CHECK YOUR >>> PATH=$PATH" -# python3 -m pip install -U pip -# python3 -m pip install -U setuptools wheel -# python3 -m pip install -U cryptography Ed25519 base58 google duniterpy pynacl pgpy pynentry SecureBytes -# python3 -m pip install -U silkaj -# python3 -m pip install -U protobuf==3.19.0 +mkdir -p ~/.venvs +python3 -m venv ~/.venvs/astro + +# ~/.venvs/astro/bin/python -m pip install -U pip +# ~/.venvs/astro/bin/python -m pip install -U setuptools wheel +# ~/.venvs/astro/bin/python -m pip install -U cryptography Ed25519 base58 google duniterpy pynacl pgpy pynentry SecureBytes +# ~/.venvs/astro/bin/python -m pip install -U silkaj +# ~/.venvs/astro/bin/python -m pip install -U protobuf==3.19.0 for i in pip setuptools wheel cryptography==3.4.8 Ed25519 base58 google duniterpy pynacl pgpy pynentry SecureBytes amzqr pdf2docx pyppeteer; do echo ">>> Installation $i <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" - python3 -m pip install -U $i - [[ $? != 0 ]] && echo "INSTALL $i FAILED." && echo "python3 -m pip install -U $i FAILED." >> /tmp/install.errors.log && continue + ~/.venvs/astro/bin/python -m pip install -U $i + [[ $? != 0 ]] && echo "INSTALL $i FAILED." && echo "~/.venvs/astro/bin/python -m pip install -U $i FAILED." >> /tmp/install.errors.log && continue done echo "#############################################" @@ -154,7 +157,7 @@ if [[ $USER != 'xbian' ]]; then if [[ $saisie != "" ]]; then ## PRINT & FONTS sudo apt install ttf-mscorefonts-installer printer-driver-all cups -y - sudo pip3 install brother_ql + ~/.venvs/astro/bin/python -m pip install brother_ql sudo cupsctl --remote-admin sudo usermod -aG lpadmin $USER sudo usermod -a -G tty $USER