• This project
    • Loading...
  • Sign in

josch / img2pdf

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 10
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
Closed
Open
Issue #86 opened 2020-10-13 02:12:10 UTC by Sebastián@SebastianHC

Can't Install

Hello, i'm am new at coding in python, I want to make simple code to convert images to pdf, but I have been trying for 3 hours to install img2pdf, I tried everything, my OS is windows 10 and I'm using Python 3.9, when I try to use pip install img2pdf there are some problems with the "wheel", I discovered Pillow has not yet launched for 3.9 and I was wondering if this is the same case or something else.

Edited 2020-10-13 12:20:29 UTC
  • josch
    @josch commented 2020-10-13 07:06:00 UTC
    Master

    I'm sorry, I cannot help you unless you show me exactly what your problem is. In this case I need the precise error messages you are getting. You also cannot go to a car mechanic and ask them to repair your car without them having a look at what's actually broken.

  • Sebastián
    @SebastianHC commented 2020-10-13 11:54:25 UTC

    Hello, sorry, this is the error im getting:

    C:\Users\anima>pip install img2pdf Processing c:\users\anima\appdata\local\pip\cache\wheels\90\f5\7f\b88a76bac33669118e7549f4856bbe975a3ad2e59280c59196\img2pdf-0.4.0-cp39-none-any.whl Collecting pikepdf Using cached pikepdf-1.19.3.tar.gz (2.4 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting Pillow Using cached Pillow-7.2.0.tar.gz (39.1 MB) Collecting lxml>=4.0 Using cached lxml-4.5.2.tar.gz (4.5 MB) Building wheels for collected packages: pikepdf, Pillow, lxml Building wheel for pikepdf (PEP 517) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\anima\appdata\local\programs\python\python39\python.exe' 'c:\users\anima\appdata\local\programs\python\python39\lib\site-packages\pip_vendor\pep517_in_process.py' build_wheel 'C:\Users\anima\AppData\Local\Temp\tmp_44fpmhq' cwd: C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\pikepdf Complete output (23 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\pikepdf copying src\pikepdf\codec.py -> build\lib.win-amd64-3.9\pikepdf copying src\pikepdf\jbig2.py -> build\lib.win-amd64-3.9\pikepdf copying src\pikepdf\objects.py -> build\lib.win-amd64-3.9\pikepdf copying src\pikepdf_cpphelpers.py -> build\lib.win-amd64-3.9\pikepdf copying src\pikepdf_methods.py -> build\lib.win-amd64-3.9\pikepdf copying src\pikepdf_version.py -> build\lib.win-amd64-3.9\pikepdf copying src\pikepdf_init.py -> build\lib.win-amd64-3.9\pikepdf creating build\lib.win-amd64-3.9\pikepdf\models copying src\pikepdf\models\encryption.py -> build\lib.win-amd64-3.9\pikepdf\models copying src\pikepdf\models\image.py -> build\lib.win-amd64-3.9\pikepdf\models copying src\pikepdf\models\matrix.py -> build\lib.win-amd64-3.9\pikepdf\models copying src\pikepdf\models\metadata.py -> build\lib.win-amd64-3.9\pikepdf\models copying src\pikepdf\models\outlines.py -> build\lib.win-amd64-3.9\pikepdf\models copying src\pikepdf\models_init__.py -> build\lib.win-amd64-3.9\pikepdf\models running build_ext building 'pikepdf._qpdf' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/


    ERROR: Failed building wheel for pikepdf Building wheel for Pillow (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\anima\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\pillow\setup.py'"'"'; file='"'"'C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\pillow\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\anima\AppData\Local\Temp\pip-wheel-ulo9rs6b' cwd: C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\pillow\ Complete output (172 lines): C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\pillow\setup.py:42: RuntimeWarning: Pillow 7.2.0 does not support Python 3.9 and does not provide prebuilt Windows binaries. We do not recommend building from source on Windows. warnings.warn( running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\PIL copying src\PIL\BdfFontFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\BlpImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\BmpImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\BufrStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ContainerIO.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\CurImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\DcxImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\DdsImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\EpsImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ExifTags.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\features.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\FitsStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\FliImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\FontFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\FpxImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\FtexImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\GbrImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\GdImageFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\GifImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\GimpGradientFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\GimpPaletteFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\GribStubImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\Hdf5StubImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\IcnsImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\IcoImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\Image.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageChops.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageCms.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageColor.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageDraw.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageDraw2.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageEnhance.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageFilter.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageFont.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageGrab.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageMath.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageMode.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageMorph.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageOps.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImagePalette.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImagePath.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageQt.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageSequence.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageShow.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageStat.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageTk.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageTransform.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImageWin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\ImtImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\IptcImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\Jpeg2KImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\JpegImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\JpegPresets.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\McIdasImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\MicImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\MpegImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\MpoImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\MspImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PaletteFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PalmImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PcdImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PcfFontFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PcxImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PdfImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PdfParser.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PixarImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PngImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PpmImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PsdImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PSDraw.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\PyAccess.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\SgiImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\SpiderImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\SunImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\TarIO.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\TgaImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\TiffImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\TiffTags.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\WalImageFile.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\WebPImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\WmfImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\XbmImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\XpmImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL\XVThumbImagePlugin.py -> build\lib.win-amd64-3.9\PIL copying src\PIL_binary.py -> build\lib.win-amd64-3.9\PIL copying src\PIL_tkinter_finder.py -> build\lib.win-amd64-3.9\PIL copying src\PIL_util.py -> build\lib.win-amd64-3.9\PIL copying src\PIL_version.py -> build\lib.win-amd64-3.9\PIL copying src\PIL_init.py -> build\lib.win-amd64-3.9\PIL copying src\PIL__main.py -> build\lib.win-amd64-3.9\PIL running egg_info writing src\Pillow.egg-info\PKG-INFO writing dependency_links to src\Pillow.egg-info\dependency_links.txt writing top-level names to src\Pillow.egg-info\top_level.txt reading manifest file 'src\Pillow.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '.c' warning: no files found matching '.h' warning: no files found matching '.sh' warning: no previously-included files found matching '.appveyor.yml' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching 'codecov.yml' warning: no previously-included files matching '.git' found anywhere in distribution warning: no previously-included files matching '.pyc' found anywhere in distribution warning: no previously-included files matching '.so' found anywhere in distribution no previously-included directories found matching '.ci' writing manifest file 'src\Pillow.egg-info\SOURCES.txt' running buildext

    The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.

    Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html

    Traceback (most recent call last): File "C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\pillow\setup.py", line 864, in setup( File "c:\users\anima\appdata\local\programs\python\python39\lib\site-packages\setuptools_init.py", line 153, in setup return distutils.core.setup(**attrs) File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\anima\appdata\local\programs\python\python39\lib\site-packages\wheel\bdist_wheel.py", line 290, in run self.run_command('build') File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in runcommand cmd_obj.run() File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\anima\appdata\local\programs\python\python39\lib\distutils\command\build_ext.py", line 340, in run self.build_extensions() File "C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\pillow\setup.py", line 694, in build_extensions raise RequiredDependencyException(f) main.RequiredDependencyException: zlib

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "", line 1, in File "C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\pillow\setup.py", line 918, in raise RequiredDependencyException(msg) main.RequiredDependencyException:

    The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.

    Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html


    ERROR: Failed building wheel for Pillow Running setup.py clean for Pillow Building wheel for lxml (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\anima\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\lxml\setup.py'"'"'; file='"'"'C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\lxml\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\anima\AppData\Local\Temp\pip-wheel-lii0gfc3' cwd: C:\Users\anima\AppData\Local\Temp\pip-install-oo15k3_v\lxml\ Complete output (74 lines): Building lxml version 4.5.2. Building without Cython. Building against pre-built libxml2 andl libxslt libraries running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\lxml copying src\lxml\builder.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\cssselect.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\doctestcompare.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\ElementInclude.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\sax.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\usedoctest.py -> build\lib.win-amd64-3.9\lxml copying src\lxml_elementpath.py -> build\lib.win-amd64-3.9\lxml copying src\lxml_init.py -> build\lib.win-amd64-3.9\lxml creating build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes__init.py -> build\lib.win-amd64-3.9\lxml\includes creating build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\builder.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\clean.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\defs.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\diff.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\formfill.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\html5parser.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\soupparser.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html_diffcommand.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html_html5builder.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html_setmixin.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html__init.py -> build\lib.win-amd64-3.9\lxml\html creating build\lib.win-amd64-3.9\lxml\isoschematron copying src\lxml\isoschematron__init.py -> build\lib.win-amd64-3.9\lxml\isoschematron copying src\lxml\etree.h -> build\lib.win-amd64-3.9\lxml copying src\lxml\etree_api.h -> build\lib.win-amd64-3.9\lxml copying src\lxml\lxml.etree.h -> build\lib.win-amd64-3.9\lxml copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-3.9\lxml copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\config.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes__init.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-3.9\lxml\includes creating build\lib.win-amd64-3.9\lxml\isoschematron\resources creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\rng copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\rng creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\isodsdl_include.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 running build_ext building 'lxml.etree' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/


    ERROR: Failed building wheel for lxml Running setup.py clean for lxml Failed to build pikepdf Pillow lxml ERROR: Could not build wheels for pikepdf which use PEP 517 and cannot be installed directly

  • josch
    @josch commented 2020-10-13 12:20:29 UTC
    Master

    I guess the problem is, that you are a too early user of Python 3.9. :)

    The problems you are having have nothing to do with img2pdf. What's happening is, that Pillow, pikepdf as well as lxml are not offering binaries for Python 3.9 yet. So pip tries to compile everything which fails because you are missing dependencies.

    I think your best option is to use Python 3.8 and wait until all projects update their binary releases for 3.9.

  • Please register or sign in to post a comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
None
Due date
No due date
2
2 participants
Reference: josch/img2pdf#86