python3 -m venv ~/.venvs/astro

This commit is contained in:
fred 2023-11-10 04:48:45 +01:00
parent 5185c473a9
commit 8eb67e2a3a
1 changed files with 11 additions and 8 deletions

View File

@ -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