Debian Fast mysql Preparation Script
Save yourself hours trying to get a working python environment use this script to quickly get most of your moving parts installing into a python3 environment:
Save yourself hours trying to get a working python environment (under the Debian environment) - use this script to quickly get most of your moving parts installing into a python3 environment:
apt install sudo -y
sudo apt install nmap
sudo apt install docker-compose-plugin
sudo apt update && sudo apt install docker-compose-plugin
sudo apt install docker-compose
sudo apt install pip3 pdftk
sudo apt install python-pip
sudo apt install python-pip3
sudo apt install python3-pip*
sudo apt install python3-colorama
sudo apt install python3-reportlab
sudo apt install python3-dateutil
sudo apt install python3-ephem
sudo apt install python3-mysql-connector
sudo apt install python3-mysqldb
sudo apt install python3-mysqldb
sudo apt install python3-mysqldb -y
sudo apt install mysql-common -y
sudo apt install python3.11-venv
sudo apt install python3.11-venv
sudo apt install python3-dateutils
sudo apt install dateutils -y
# And the pip3 side
pip3 install colorama
pip3 install colorama
pip3 install reportlab
pip3 install ephem
pip3 install mysql-connector-python
pip3 install certifi
pip3 install dateutil
pip3 install dateutil
pip3 uninstall python3-dateutil
pip3 install python-dateutil
To quickly make a python3 venv (Virtual Environment)
python3 -m venv venvdir
source venvdir/bin/activate
pip3 install reportlab
pip3 install ephem
pip3 install dateutils
pip3 install colorama
pip3 install certifi
pip3 uninstall mysql-connector
pip3 install mysql-connector-python --force-reinstall
And then when you run pip3 it will feed the VENV environment:
pip3 install colorama
pip3 install reportlab
pip3 install ephem
pip3 install mysql-connector-python
pip3 install certifi
pip3 install dateutil
pip3 install dateutil
pip3 uninstall python3-dateutil
pip3 install python-dateutil
If you are getting ERRORS as in:
"This system is externally managed... blah blah blah."
You can force it with:
Installing from Wheel to get MYSQL working:
- Download your latest wheel from
- https://pypi.org/project/mysql-connector-python/#files
Then install it with:
pip3 install --break-system-packages <target_wheel.whl>