legacy-install-failure × Encountered error while trying to install package- lxml - python

I am trying to install harwest on my win11 laptop with AMD in it.
When I try to install it using pip install harwest I am getting the following output
Collecting harwest
Using cached harwest-0.3.2-py3-none-any.whl (17 kB)
Collecting beautifulsoup4==4.8.2
Using cached beautifulsoup4-4.8.2-py3-none-any.whl (106 kB)
Requirement already satisfied: requests in c:\msys64\mingw64\lib\python3.10\site-packages (from harwest) (2.28.2)
Requirement already satisfied: gitdb2 in c:\msys64\mingw64\lib\python3.10\site-packages (from harwest) (4.0.2)
Collecting gitpython==3.0.6
Using cached GitPython-3.0.6-py3-none-any.whl (451 kB)
Collecting lxml
Using cached lxml-4.9.2.tar.gz (3.7 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: soupsieve>=1.2 in c:\msys64\mingw64\lib\python3.10\site-packages (from beautifulsoup4==4.8.2->harwest) (2.4)
Requirement already satisfied: gitdb>=4.0.1 in c:\msys64\mingw64\lib\python3.10\site-packages (from gitdb2->harwest) (4.0.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\msys64\mingw64\lib\python3.10\site-packages (from requests->harwest) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\msys64\mingw64\lib\python3.10\site-packages (from requests->harwest) (1.26.14)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\msys64\mingw64\lib\python3.10\site-packages (from requests->harwest) (3.0.1)
Requirement already satisfied: idna<4,>=2.5 in c:\msys64\mingw64\lib\python3.10\site-packages (from requests->harwest) (3.4)
Requirement already satisfied: smmap<6,>=3.0.1 in c:\msys64\mingw64\lib\python3.10\site-packages (from gitdb>=4.0.1->gitdb2->harwest) (5.0.0)
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [102 lines of output]
Building lxml version 4.9.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.mingw_x86_64-cpython-310
creating build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\builder.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\cssselect.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\doctestcompare.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\ElementInclude.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\pyclasslookup.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\sax.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\usedoctest.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\_elementpath.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\__init__.py -> build\lib.mingw_x86_64-cpython-310\lxml
creating build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\__init__.py -> build\lib.mingw_x86_64-cpython-310\lxml\includes
creating build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\builder.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\clean.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\defs.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\diff.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\formfill.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\__init__.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\etree_api.h -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\lxml.etree.h -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\etree.pyx -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\objectify.pyx -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\apihelpers.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\classlookup.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\cleanup.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\debug.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\docloader.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\dtd.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\extensions.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\iterparse.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\nsclasses.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\objectpath.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\parser.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\parsertarget.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\proxy.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\public-api.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\readonlytree.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\relaxng.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\saxparser.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\schematron.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\serializer.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xinclude.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xmlerror.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xmlid.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xmlschema.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xpath.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xslt.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xsltext.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\__init__.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.mingw_x86_64-cpython-310\lxml\includes
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\rng
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, beautifulsoup4, gitpython, harwest
Running setup.py install for lxml ... error
error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [104 lines of output]
Building lxml version 4.9.2.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
C:\msys64\mingw64\lib\python3.10\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.mingw_x86_64-cpython-310
creating build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\builder.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\cssselect.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\doctestcompare.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\ElementInclude.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\pyclasslookup.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\sax.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\usedoctest.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\_elementpath.py -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\__init__.py -> build\lib.mingw_x86_64-cpython-310\lxml
creating build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\__init__.py -> build\lib.mingw_x86_64-cpython-310\lxml\includes
creating build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\builder.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\clean.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\defs.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\diff.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\formfill.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
copying src\lxml\html\__init__.py -> build\lib.mingw_x86_64-cpython-310\lxml\html
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\etree_api.h -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\lxml.etree.h -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\etree.pyx -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\objectify.pyx -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\apihelpers.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\classlookup.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\cleanup.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\debug.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\docloader.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\dtd.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\extensions.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\iterparse.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\nsclasses.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\objectpath.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\parser.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\parsertarget.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\proxy.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\public-api.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\readonlytree.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\relaxng.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\saxparser.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\schematron.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\serializer.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xinclude.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xmlerror.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xmlid.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xmlschema.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xpath.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xslt.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\xsltext.pxi -> build\lib.mingw_x86_64-cpython-310\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\__init__.pxd -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.mingw_x86_64-cpython-310\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.mingw_x86_64-cpython-310\lxml\includes
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\rng
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl
creating build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.mingw_x86_64-cpython-310\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I tried installing lxml from https://www.lfd.uci.edu/~gohlke/pythonlibs/ but no matter whatever file I try it says ERROR: lxml-4.9.0-cp311-cp311-win_amd64.whl is not a supported wheel on this platform. then I tried this command py -m pip install -r requirements.txt Collecting gitpython==3.0.6 which in the log downloaded what I think is the lxml
Using cached GitPython-3.0.6-py3-none-any.whl (451 kB)
Collecting gitdb2
Using cached gitdb2-4.0.2-py3-none-any.whl (1.1 kB)
Collecting lxml
Downloading lxml-4.9.2-cp311-cp311-win_amd64.whl (3.8 MB)
---------------------------------------- 3.8/3.8 MB 2.4 MB/s eta 0:00:00
Collecting beautifulsoup4==4.8.2
Using cached beautifulsoup4-4.8.2-py3-none-any.whl (106 kB)
Collecting requests
Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting soupsieve>=1.2
Using cached soupsieve-2.4-py3-none-any.whl (37 kB)
Collecting gitdb>=4.0.1
Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.0.1-cp311-cp311-win_amd64.whl (96 kB)
---------------------------------------- 96.0/96.0 kB 1.1 MB/s eta 0:00:00
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting smmap<6,>=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Installing collected packages: charset-normalizer, urllib3, soupsieve, smmap, lxml, idna, certifi, requests, gitdb, beautifulsoup4, gitdb2, gitpython
Successfully installed beautifulsoup4-4.8.2 certifi-2022.12.7 charset-normalizer-3.0.1 gitdb-4.0.10 gitdb2-4.0.2 gitpython-3.0.6 idna-3.4 lxml-4.9.2 requests-2.28.2 smmap-5.0.0 soupsieve-2.4 urllib3-1.26.14
but my main command harwest still gives the above error of legacy-install-failure .
I also downloaded microsoft build tools without the optional stuff and its still not working
I have installed python 10 and 11 although in cmd it shows 10 only
I am at a loss, Please help

I suspect these are the relevant messages from the output:,
python setup.py bdist_wheel did not run successfully
Wheel did not finish (Wheel automates some of the package installation process, in this case nileshsah/harwest-tool).
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
Wheel parameter --plat-name value is not one of the supported values, the package author specifies what platforms their package has been designed in this case 4 types of win systems)
This error originates from a subprocess, and is likely not a problem with pip.
Second confirmation it's not pip or wheel code fault
Conclusion, I suspect nileshsah/harwest-tool may not be compatible with your system. It is possible to specify CPU Architecture of a Python package, this may require careful thought on your part or trial and error (on a non-critical Python installation) to see if nileshsah/harwest-tool is compatible with your system.
(Finally, Hello and Welcome to stackoverflow)

Related

Cannot install Scrapy on macOS M1 13.0.1 - lxml installation error: '/usr/bin/clang' failed with exit code 1

I'm trying to install Scrapy in my Macbook M1 with macOS Ventura 13.0.1, but it is throwing an error while trying to install lxml.
Installing collected packages: lxml, jmespath, itemadapter, idna, filelock, cssselect, charset-normalizer, cffi, certifi, attrs, requests, parsel, hyperlink, cryptography, Automat, Twisted, service-identity, requests-file, pyOpenSSL, itemloaders, tldextract, scrapy
Running setup.py install for lxml ... error
error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [115 lines of output]
Building lxml version 4.9.2.
Building without Cython.
Building against libxml2 2.9.13 and libxslt 1.1.35
running install
/Users/tomasazevedo/Documents/py_scripts/webscraping_test/env/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-39
creating build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/sax.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/builder.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml
creating build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
creating build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/html
creating build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/etree_api.h -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/lxml.etree.h -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/objectify.pyx -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/etree.pyx -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/public-api.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/xmlid.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/cleanup.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/xslt.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/xpath.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/debug.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/serializer.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/classlookup.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/saxparser.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/objectpath.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/relaxng.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/xinclude.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/iterparse.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/parser.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/dtd.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/apihelpers.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/xmlerror.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/readonlytree.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/extensions.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/xmlschema.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/schematron.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/docloader.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/nsclasses.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/parsertarget.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/xsltext.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/proxy.pxi -> build/lib.macosx-10.9-universal2-cpython-39/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.9-universal2-cpython-39/lxml/includes
creating build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources
creating build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/rng
creating build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl
creating build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.9-universal2-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-10.9-universal2-cpython-39
creating build/temp.macosx-10.9-universal2-cpython-39/src
creating build/temp.macosx-10.9-universal2-cpython-39/src/lxml
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/Users/tomasazevedo/Documents/py_scripts/webscraping_test/env/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -c src/lxml/etree.c -o build/temp.macosx-10.9-universal2-cpython-39/src/lxml/etree.o -w -flat_namespace
src/lxml/etree.c:96:10: fatal error: 'Python.h' file not found
#include "Python.h"
^~~~~~~~~~
1 error generated.
Compile failed: command '/usr/bin/clang' failed with exit code 1
cc -I/usr/include/libxml2 -c /var/folders/zv/tjy58slj5mb96l_9g6x105r00000gn/T/xmlXPathInitbd2u4ada.c -o var/folders/zv/tjy58slj5mb96l_9g6x105r00000gn/T/xmlXPathInitbd2u4ada.o
cc var/folders/zv/tjy58slj5mb96l_9g6x105r00000gn/T/xmlXPathInitbd2u4ada.o -lxml2 -o a.out
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I've tried a bunch of things to try to install lxml on its own, but to no avail, the error is always the same.
I have the most recent Python version 3.9.6
Does anyone have any idea how to solve this?
Thanks in advance.
For some reason was able to install lxml and scrapy outside the virtual environment.
had the same issue in a venv using 3.9; upgraded to 3.10 and it resolved

How can I get rid of the lxml download error?

Then i download lxml with command pip install lxml in visual studio code i get this mistake:
Collecting lxml
Using cached lxml-4.9.1.tar.gz (3.4 MB)
Preparing metadata (setup.py) ... done
Installing collected packages: lxml
DEPRECATION: lxml is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for lxml ... error
error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [76 lines of output]
Building lxml version 4.9.1.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
C:\Users\79628\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\lxml
copying src\lxml\builder.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\cssselect.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\doctestcompare.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\ElementInclude.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\sax.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\usedoctest.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\_elementpath.py -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\__init__.py -> build\lib.win-amd64-cpython-311\lxml
creating build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\__init__.py -> build\lib.win-amd64-cpython-311\lxml\includes
creating build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\builder.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\clean.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\defs.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\diff.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.win-amd64-cpython-311\lxml\html
copying src\lxml\html\__init__.py -> build\lib.win-amd64-cpython-311\lxml\html
creating build\lib.win-amd64-cpython-311\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py -> build\lib.win-amd64-cpython-311\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\etree_api.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\lxml.etree.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-cpython-311\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\__init__.pxd -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-cpython-311\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-cpython-311\lxml\includes
creating build\lib.win-amd64-cpython-311\lxml\isoschematron\resources
creating build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\rng
creating build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl
creating build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win-amd64-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-cpython-311\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-cpython-311\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-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-cpython-311\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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Other libraries download fine except lxml
How can i get rid of it? Maybe someone faced such a problem?
I also try it in pycharm, but it didn't work too.
I need in visual studio code.
I will be very grateful for the solution
Did you see this part of the error message:
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/
You need the Visual C++ compiler to build this package on your computer.

Error while installation of PyQt5 in python 3.8.3

I have been trying to download PyQt5 but it keeps showing an error. I tried python version 3.10 but it also gave me an error.
Here is the error which I get-
Using cached https://files.pythonhosted.org/packages/3b/27/fd81188a35f37be9b3b4c2db1654d9439d1418823916fe702ac3658c9c41/PyQt5-5.15.6.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python38\python.exe' 'c:\users\user\appdata\local\programs\python\python38\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\user\AppData\Local\Temp\pip-build-env-kl6ymrd8\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'sip >=6.4, <7' 'PyQt-builder >=1.9, <2'
cwd: None
Complete output (121 lines):
Collecting sip<7,>=6.4
Using cached https://files.pythonhosted.org/packages/de/c1/9ac5596c10f6ce28abc1849ed1b6299b3953af0b6ff21e227024991a517e/sip-6.5.1.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting PyQt-builder<2,>=1.9
Using cached https://files.pythonhosted.org/packages/e4/55/db354bd9dfa613c8f8f6ecb81617caefdfb3e77befba098f8e14ed95e385/PyQt_builder-1.12.2-py3-none-any.whl
Collecting setuptools (from sip<7,>=6.4)
Using cached https://files.pythonhosted.org/packages/7c/5b/3d92b9f0f7ca1645cba48c080b54fe7d8b1033a4e5720091d1631c4266db/setuptools-60.10.0-py3-none-any.whl
Collecting packaging (from sip<7,>=6.4)
Using cached https://files.pythonhosted.org/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl
Collecting toml (from sip<7,>=6.4)
Using cached https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl
Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging->sip<7,>=6.4)
Using cached https://files.pythonhosted.org/packages/80/c1/23fd82ad3121656b585351aba6c19761926bb0db2ebed9e4ff09a43a3fcc/pyparsing-3.0.7-py3-none-any.whl
Building wheels for collected packages: sip
Building wheel for sip (PEP 517): started
Building wheel for sip (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python38\python.exe' 'c:\users\user\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\user\AppData\Local\Temp\tmp6lmjb9iq'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-ihnr9js0\sip
Complete output (89 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\sipbuild
copying sipbuild\abstract_builder.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\abstract_project.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\api.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\argument_parser.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\bindings.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\buildable.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\builder.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\configurable.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\distutils_builder.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\exceptions.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\helpers.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\installable.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\project.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\pyproject.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\py_versions.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\setuptools_builder.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\version.py -> build\lib.win-amd64-3.8\sipbuild
copying sipbuild\__init__.py -> build\lib.win-amd64-3.8\sipbuild
creating build\lib.win-amd64-3.8\sipbuild\distinfo
copying sipbuild\distinfo\distinfo.py -> build\lib.win-amd64-3.8\sipbuild\distinfo
copying sipbuild\distinfo\main.py -> build\lib.win-amd64-3.8\sipbuild\distinfo
copying sipbuild\distinfo\__init__.py -> build\lib.win-amd64-3.8\sipbuild\distinfo
creating build\lib.win-amd64-3.8\sipbuild\module
copying sipbuild\module\abi_version.py -> build\lib.win-amd64-3.8\sipbuild\module
copying sipbuild\module\main.py -> build\lib.win-amd64-3.8\sipbuild\module
copying sipbuild\module\module.py -> build\lib.win-amd64-3.8\sipbuild\module
copying sipbuild\module\__init__.py -> build\lib.win-amd64-3.8\sipbuild\module
creating build\lib.win-amd64-3.8\sipbuild\tools
copying sipbuild\tools\build.py -> build\lib.win-amd64-3.8\sipbuild\tools
copying sipbuild\tools\install.py -> build\lib.win-amd64-3.8\sipbuild\tools
copying sipbuild\tools\sdist.py -> build\lib.win-amd64-3.8\sipbuild\tools
copying sipbuild\tools\wheel.py -> build\lib.win-amd64-3.8\sipbuild\tools
copying sipbuild\tools\__init__.py -> build\lib.win-amd64-3.8\sipbuild\tools
creating build\lib.win-amd64-3.8\sipbuild\module\source
creating build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\apiversions.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\array.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\array.h -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\bool.cpp -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\descriptors.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\int_convertors.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\LICENSE -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\LICENSE-GPL2 -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\LICENSE-GPL3 -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\MANIFEST.in -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\objmap.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\pyproject.toml -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\qtlib.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\README.in -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\setup.cfg.in -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\setup.py.in -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\sip.h.in -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\sip.pyi -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\sip.rst.in -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\sipint.h -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\siplib.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\threads.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
copying sipbuild\module\source\12\voidptr.c -> build\lib.win-amd64-3.8\sipbuild\module\source\12
creating build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\array.c -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\array.h -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\bool.cpp -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\descriptors.c -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\int_convertors.c -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\LICENSE -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\LICENSE-GPL2 -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\LICENSE-GPL3 -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\MANIFEST.in -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\objmap.c -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\pyproject.toml -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\README.in -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\setup.cfg.in -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\setup.py.in -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\sip.h.in -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\sip.pyi -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\sip.rst.in -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\sipint.h -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\siplib.c -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\threads.c -> build\lib.win-amd64-3.8\sipbuild\module\source\13
copying sipbuild\module\source\13\voidptr.c -> build\lib.win-amd64-3.8\sipbuild\module\source\13
running build_ext
building 'sipbuild.code_generator' 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 sip
Running setup.py clean for sip
Failed to build sip
ERROR: Could not build wheels for sip which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 22.0.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\user\appdata\local\programs\python\python38\python.exe' 'c:\users\user\appdata\local\programs\python\python38\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\user\AppData\Local\Temp\pip-build-env-kl6ymrd8\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'sip >=6.4, <7' 'PyQt-builder >=1.9, <2' Check the logs for full command output.
My python version is 3.8
I cant change my python version because I will have to install a lot of modules and some errors can come in installing those modules also.

Pip Command Errored out with exit status 1 [duplicate]

This question already has answers here:
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Closed 2 years ago.
Can someone help me figure out what's the issue with this Pip install?
I am trying to install a friends code from Pip and use a password but I get this error during installation.
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joeyb\\AppData\\Local\\Temp\\pip-install-dfw83vrd\\pycrypto_ae3a65b71de1411fb7e3c760e80c05c5\\setup.py'"'"'; __file__='"'"'C:\\Users\\joeyb\\AppData\\Local\\Temp\\pip-install-dfw83vrd\\pycrypto_ae3a65b71de1411fb7e3c760e80c05c5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\joeyb\AppData\Local\Temp\pip-record-tscitvfo\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\joeyb\AppData\Roaming\Python\Python38\Include\pycrypto'
cwd: C:\Users\joeyb\AppData\Local\Temp\pip-install-dfw83vrd\pycrypto_ae3a65b71de1411fb7e3c760e80c05c5\
Complete output (153 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\Crypto
copying lib\Crypto\pct_warnings.py -> build\lib.win-amd64-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win-amd64-3.8\Crypto
creating build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\hashalgo.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\HMAC.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD2.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD4.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD5.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\RIPEMD.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA224.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA256.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA384.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA512.py -> build\lib.win-amd64-3.8\Crypto\Hash
copying lib\Crypto\Hash\__init__.py -> build\lib.win-amd64-3.8\Crypto\Hash
creating build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC4.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\blockalgo.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\CAST.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\DES.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\DES3.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_OAEP.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_v1_5.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\XOR.py -> build\lib.win-amd64-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\__init__.py -> build\lib.win-amd64-3.8\Crypto\Cipher
creating build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\asn1.py -> build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\Counter.py -> build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\number.py -> build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\py3compat.py -> build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\randpool.py -> build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\RFC1751.py -> build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\winrandom.py -> build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\_number_new.py -> build\lib.win-amd64-3.8\Crypto\Util
copying lib\Crypto\Util\__init__.py -> build\lib.win-amd64-3.8\Crypto\Util
creating build\lib.win-amd64-3.8\Crypto\Random
copying lib\Crypto\Random\random.py -> build\lib.win-amd64-3.8\Crypto\Random
copying lib\Crypto\Random\_UserFriendlyRNG.py -> build\lib.win-amd64-3.8\Crypto\Random
copying lib\Crypto\Random\__init__.py -> build\lib.win-amd64-3.8\Crypto\Random
creating build\lib.win-amd64-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaAccumulator.py -> build\lib.win-amd64-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaGenerator.py -> build\lib.win-amd64-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\SHAd256.py -> build\lib.win-amd64-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\__init__.py -> build\lib.win-amd64-3.8\Crypto\Random\Fortuna
creating build\lib.win-amd64-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\fallback.py -> build\lib.win-amd64-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\nt.py -> build\lib.win-amd64-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\posix.py -> build\lib.win-amd64-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\rng_base.py -> build\lib.win-amd64-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\__init__.py -> build\lib.win-amd64-3.8\Crypto\Random\OSRNG
creating build\lib.win-amd64-3.8\Crypto\SelfTest
copying lib\Crypto\SelfTest\st_common.py -> build\lib.win-amd64-3.8\Crypto\SelfTest
copying lib\Crypto\SelfTest\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest
creating build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\common.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_AES.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC2.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC4.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_CAST.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES3.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_XOR.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Cipher
creating build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\common.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_HMAC.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD2.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD4.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD5.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_RIPEMD.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA224.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA256.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA384.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA512.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Hash
creating build\lib.win-amd64-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_chaffing.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_KDF.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Protocol
creating build\lib.win-amd64-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_DSA.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_importKey.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_RSA.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\PublicKey
creating build\lib.win-amd64-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_random.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_rpoolcompat.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random
creating build\lib.win-amd64-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\Fortuna
creating build\lib.win-amd64-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_generic.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_nt.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_posix.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Random\OSRNG
creating build\lib.win-amd64-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_asn1.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_Counter.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_number.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_winrandom.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Util
creating build\lib.win-amd64-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\__init__.py -> build\lib.win-amd64-3.8\Crypto\SelfTest\Signature
creating build\lib.win-amd64-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\AllOrNothing.py -> build\lib.win-amd64-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\Chaffing.py -> build\lib.win-amd64-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\KDF.py -> build\lib.win-amd64-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\__init__.py -> build\lib.win-amd64-3.8\Crypto\Protocol
creating build\lib.win-amd64-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\DSA.py -> build\lib.win-amd64-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\ElGamal.py -> build\lib.win-amd64-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\pubkey.py -> build\lib.win-amd64-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\RSA.py -> build\lib.win-amd64-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_DSA.py -> build\lib.win-amd64-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_RSA.py -> build\lib.win-amd64-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_slowmath.py -> build\lib.win-amd64-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\__init__.py -> build\lib.win-amd64-3.8\Crypto\PublicKey
creating build\lib.win-amd64-3.8\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win-amd64-3.8\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win-amd64-3.8\Crypto\Signature
copying lib\Crypto\Signature\__init__.py -> build\lib.win-amd64-3.8\Crypto\Signature
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\joeyb\\AppData\\Local\\Temp\\pip-install-dfw83vrd\\pycrypto_ae3a65b71de1411fb7e3c760e80c05c5\\setup.py'"'"'; __file__='"'"'C:\\Users\\joeyb\\AppData\\Local\\Temp\\pip-install-dfw83vrd\\pycrypto_ae3a65b71de1411fb7e3c760e80c05c5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\joeyb\AppData\Local\Temp\pip-record-tscitvfo\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\joeyb\AppData\Roaming\Python\Python38\Include\pycrypto' Check the logs for full command output.
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
So, you need to install Microsoft Visual C++ 14.0 and pip already gived a URL where you can do it.

Python: Strange behavior of PIL and cannot install pillow with pip

I try to run script for my TFT screen. When I start it within environment IT WORKS. So script is fine. When I start it outside environment I get:
./test
Traceback (most recent call last):
File "./test", line 5, in <module>
from PIL import Image
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 60, in <module>
from . import _imaging as core
ImportError: cannot import name _imaging
i started to think that I have wrong version of PIL or Pillow, but both are uninstalled. pip show shows empty result for both.
When I want to install pip install pillow I get few screens of logs and errors (unlike other installed packages).
sudo pip install pillow
Collecting pillow
Using cached https://files.pythonhosted.org/packages/89/b8/2f49bf71cbd0e9485bb36f72d438421b69b7356180695ae10bd4fd3066f5/Pillow-5.1.0.tar.gz
Building wheels for collected packages: pillow
Running setup.py bdist_wheel for pillow ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gMbMIp/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 /tmp/tmpxj0jEHpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/version.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/_binary.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/OleFileIO.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/TarIO.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/features.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/_util.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/Image.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/__init__.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FontFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing top-level names to src/Pillow.egg-info/top_level.txt
writing dependency_links to src/Pillow.egg-info/dependency_links.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'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files found matching '.travis/*'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
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
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running build_ext
The headers or library files could not be found for jpeg,
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 "<string>", line 1, in <module>
File "/tmp/pip-build-gMbMIp/pillow/setup.py", line 806, in <module>
raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
----------------------------------------
Failed building wheel for pillow
Running setup.py clean for pillow
Failed to build pillow
Installing collected packages: pillow
Running setup.py install for pillow ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gMbMIp/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-FLskBf-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PcfFontFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ExifTags.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/JpegPresets.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/version.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageShow.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageMath.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageGrab.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/_binary.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PSDraw.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageChops.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageDraw2.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/WalImageFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/BdfFontFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageOps.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageDraw.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/OleFileIO.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/TarIO.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageTk.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PyAccess.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageSequence.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageEnhance.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageColor.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ContainerIO.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageMode.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImagePalette.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PaletteFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageFilter.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/features.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/_util.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageQt.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageTransform.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PalmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageStat.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageCms.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImagePath.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GdImageFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/Image.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/TiffTags.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageFont.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/__init__.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageMorph.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/PdfParser.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImageWin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/FontFile.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.linux-armv7l-2.7/PIL
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing top-level names to src/Pillow.egg-info/top_level.txt
writing dependency_links to src/Pillow.egg-info/dependency_links.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'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files found matching '.travis/*'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
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
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running build_ext
The headers or library files could not be found for jpeg,
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 "<string>", line 1, in <module>
File "/tmp/pip-build-gMbMIp/pillow/setup.py", line 806, in <module>
raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-gMbMIp/pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-FLskBf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-gMbMIp/pillow/
Possible solutions include (I believe):
Force a script run from command line to run in environment (but what to put in the very first line of the script?)
Force python outside environment to use environment packages so I do not have to double them (but how?)
Solve the pip install pillow riddle
Thank you in advance

Categories