Requirement already satisfied: cairocffi in c:\users\USER\appdata\roaming\python\python312\site-packages (from cairosvg) (1.6.1) Requirement already satisfied: cairosvg in c:\users\USER\appdata\roaming\python\python312\site-packages (2.7.1) ModuleNotFoundError: No module named 'cairosvg'Īfter trying to reinstall CairoSVG using pip command twice, I got following output in the console: Defaulting to user installation because normal site-packages is not writeable Running this code will result into following error: PS D:\Project WebAuthn> & "D:/Program Files/Inkscape/bin/python.exe" c:/Users/USER/Desktop/Python-Projekte/gtk.pyįile "c:\Users\USER\Desktop\Python-Projekte\gtk.py", line 1, in Response = HttpResponse(mimetype='application/pdf') # The pdf is now a bytestring that can be returned instead of saving to disk. Pdf = cairosvg.svg2pdf(bytestring=svg.encode("utf-8")) I tried to run following code from here: import cairosvg The latest version of the Python extension from the marketplace in Visual Studio Code has been installed.I use the latest version of Visual Studio Code for developing Python applications.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |