|
sudo apt update && sudo apt install python3-venv -y |
|
|
|
|
|
python3 -m venv venv |
|
|
|
source venv/bin/activate |
|
|
|
|
|
sudo apt-get install libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev \ |
|
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \ |
|
libharfbuzz-dev libfribidi-dev libxcb1-dev -y |
|
|
|
pip install meson ninja |
|
|
|
|
|
git clone https://github.com/python-pillow/Pillow |
|
|
|
cd Pillow/depends |
|
|
|
sed -i 's/sudo/sudo -E env PATH=$PATH/g' install_raqm.sh |
|
|
|
chmod +x ./install_raqm.sh && ./install_raqm.sh |
|
|
|
|
|
cd ../.. |
|
rm -rf Pillow |
|
|
|
|
|
pip install -r requirements_generate_font_dataset.txt |
|
|
|
|
|
wget https://www.mit.edu/~ecprice/wordlist.10000 |
|
mv wordlist.10000 wordlist.txt |
|
|
|
|