1
0 Comments

I am using Spyder with Python and have been attempting to install imgkit on my Windows 10 computer without success. Despite watching various tutorials and videos, none of them specifically addressed installing imgkit for Python.

My approach has been to download the program from https://wkhtmltopdf.org/downloads.html, install it, use pip to install imgkit in Python, manually update the “path” by adding the folder where the “wkhtmltoimage” application is located, restart the kernel, and then execute “import imgkit”.

However, I keep receiving an error message that says “ImportError: attempted relative import with no known parent package”.

I’m unsure of what I might be missing.

Askify Moderator Edited question April 27, 2023