I am trying to install weasyprint, my set up is:
- Operating System: Windows 10 Pro 64-bit
- Python 3.8.2 32-bit
I followed the official installation guide https://weasyprint.readthedocs.io/en/latest/install.html#windows painstakingly:
Step 1: Install Python - check
Step 2: Update pip and setuptools packages - check
Step 3: Install WeasyPrint - check
Step 4: Install the GTK+ libraries - check
Note: I installed the 32-bit version of GTK+ since my python is 32-bit (via MSYS2 for 64-bit windows) and appended
C:\msys64\mingw32\bintoPATHunder advanced system settings > environment variables > system variables > PathStep 5: Test-Run WeasyPrint
Executing the command
python -m weasyprint http://weasyprint.org weasyprint.pdfi get the answerC:/msys64/mingw32/bin/python.exe: No module named weasyprintAlso when I execute similar commands like
python -m pip install WeasyPrinti get the answerC:/msys64/mingw32/bin/python.exe: No module named pip
I guess there seems to be a problem with how I added C:\msys64\mingw32\bin to my path variable, but I can't find out what exactly is wrong here.