LuChang-CS / news-crawler

A news crawler for BBC News, Reuters and New York Times.
108 stars 40 forks source link

Failed to run `pip install -r requirements.txt` #24

Open snakeninny opened 1 year ago

snakeninny commented 1 year ago

Hi LuChang, I'm using macOS 13.2.1 with M1 chip and Python 3.10.8. I was trying to setup NYTimes crawler with your code but failed to setup:

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting beautifulsoup4==4.9.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e8/b5/7bb03a696f2c9b7af792a8f51b82974e51c268f15e925fc834876a4efa0b/beautifulsoup4-4.9.0-py3-none-any.whl (109 kB)
Requirement already satisfied: bs4==0.0.1 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (0.0.1)
Requirement already satisfied: certifi==2020.4.5.1 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (2020.4.5.1)
Requirement already satisfied: chardet==3.0.4 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (3.0.4)
Collecting click==7.1.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/dd/c0/4d8f43a9b16e289f36478422031b8a63b54b6ac3b1ba605d602f10dd54d6/click-7.1.1-py2.py3-none-any.whl (82 kB)
Collecting configobj==5.0.6
  Using cached configobj-5.0.6-py3-none-any.whl
Collecting cssselect==1.1.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3b/d4/3b5c17f00cce85b9a1e6f91096e1cc8e8ede2e1be8e96b87ce1ed09e92c5/cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting goose3==3.1.6
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/29/0e/5d049211226268ebce83ae5c8c4f578af0f5f120b24de9542485efcfeda2/goose3-3.1.6-py3-none-any.whl (86 kB)
Collecting html5lib==1.0.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a5/62/bbd2be0e7943ec8504b517e62bab011b4946e1258842bc159e5dfde15b96/html5lib-1.0.1-py2.py3-none-any.whl (117 kB)
Collecting idna==2.9
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: jieba==0.42.1 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 11)) (0.42.1)
Requirement already satisfied: joblib==0.14.1 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 12)) (0.14.1)
Collecting lxml==4.5.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/39/2b/0a66d5436f237aff76b91e68b4d8c041d145ad0a2cdeefe2c42f76ba2857/lxml-4.5.0.tar.gz (4.5 MB)
  Preparing metadata (setup.py) ... done
Collecting nltk==3.5
  Using cached nltk-3.5-py3-none-any.whl
Collecting Pillow==7.1.1
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c7/04/c91bb0e495c1e8a09633ecb061fab32e276ace7cefcef5d12334cdd14cd2/Pillow-7.1.1.tar.gz (38.9 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: python-dateutil==2.8.1 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 16)) (2.8.1)
Requirement already satisfied: regex==2020.4.4 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 17)) (2020.4.4)
Collecting requests==2.23.0
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: six==1.14.0 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 19)) (1.14.0)
Requirement already satisfied: soupsieve==2.0 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 20)) (2.0)
Requirement already satisfied: tqdm==4.45.0 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 21)) (4.45.0)
Requirement already satisfied: urllib3==1.25.9 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 22)) (1.25.9)
Requirement already satisfied: webencodings==0.5.1 in /opt/homebrew/lib/python3.10/site-packages (from -r requirements.txt (line 23)) (0.5.1)
Building wheels for collected packages: lxml, Pillow
  Building wheel for lxml (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [146 lines of output]
      Building lxml version 4.5.0.
      Building without Cython.
      Using build configuration of libxslt 1.1.35
      Building against libxml2/libxslt in the following directory: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-13-arm64-cpython-310
      creating build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/_elementpath.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/sax.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/pyclasslookup.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/__init__.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/builder.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/doctestcompare.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/usedoctest.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/cssselect.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/ElementInclude.py -> build/lib.macosx-13-arm64-cpython-310/lxml
      creating build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/__init__.py -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      creating build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/soupparser.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/defs.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/_setmixin.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/clean.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/_diffcommand.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/html5parser.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/__init__.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/formfill.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/builder.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/ElementSoup.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/_html5builder.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/usedoctest.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      copying src/lxml/html/diff.py -> build/lib.macosx-13-arm64-cpython-310/lxml/html
      creating build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron
      copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron
      copying src/lxml/etree.h -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/etree_api.h -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/lxml.etree.h -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/lxml.etree_api.h -> build/lib.macosx-13-arm64-cpython-310/lxml
      copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/c14n.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/__init__.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/schematron.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/tree.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/uri.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/xpath.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/xslt.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/config.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/lxml-version.h -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      copying src/lxml/includes/etree_defs.h -> build/lib.macosx-13-arm64-cpython-310/lxml/includes
      creating build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources
      creating build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/rng
      copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/rng
      creating build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/xsl
      copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/xsl
      copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/xsl
      creating build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-13-arm64-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.macosx-13-arm64-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.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-13-arm64-cpython-310/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
      running build_ext
      building 'lxml.etree' extension
      creating build/temp.macosx-13-arm64-cpython-310
      creating build/temp.macosx-13-arm64-cpython-310/src
      creating build/temp.macosx-13-arm64-cpython-310/src/lxml
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -DCYTHON_CLINE_IN_TRACEBACK=0 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Isrc -Isrc/lxml/includes -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c src/lxml/etree.c -o build/temp.macosx-13-arm64-cpython-310/src/lxml/etree.o -w -flat_namespace
      src/lxml/etree.c:221671:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:221673:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:222734:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:222736:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:223067:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:223069:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:224754:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:224756:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:229310:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:229312:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:229575:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:229577:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:231779:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:231781:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:234106:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:234108:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:234443:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:234445:5: error: expression is not assignable
          --Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      src/lxml/etree.c:235075:5: error: expression is not assignable
          ++Py_REFCNT(o);
          ^ ~~~~~~~~~~~~
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
      Compile failed: command '/usr/bin/clang' failed with exit code 1
      creating var
      creating var/folders
      creating var/folders/vh
      creating var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq
      creating var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T
      cc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/usr/include/libxml2 -c /var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/xmlXPathInity39dof4n.c -o var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/xmlXPathInity39dof4n.o
      cc var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/xmlXPathInity39dof4n.o -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib -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: Failed building wheel for lxml
  Running setup.py clean for lxml
  Building wheel for Pillow (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [182 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-13-arm64-cpython-310
      creating build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageMode.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PngImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/SunImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/TarIO.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/BdfFontFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageStat.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageColor.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ContainerIO.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/MspImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/MicImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/_version.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GifImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageQt.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageMath.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PaletteFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FontFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PdfParser.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ExifTags.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageCms.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageChops.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PSDraw.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageFilter.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageDraw2.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImagePath.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/__init__.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/JpegPresets.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/features.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageDraw.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GimpGradientFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageWin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/_tkinter_finder.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageMorph.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/WalImageFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PcfFontFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageTk.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageOps.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageShow.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageEnhance.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageGrab.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FliImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/TiffTags.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/CurImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/_util.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GdImageFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImagePalette.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageTransform.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageSequence.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PyAccess.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/_binary.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/Image.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/__main__.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageFont.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/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 'azure-pipelines.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 '.azure-pipelines'
      no previously-included directories found matching '.ci'
      adding license file 'LICENSE'
      writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
      running build_ext

      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 "/private/var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/pip-install-6ra5p5s7/pillow_a86185092ece4081b2c571fb6282a7c3/setup.py", line 860, in <module>
          setup(
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/homebrew/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "/private/var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/pip-install-6ra5p5s7/pillow_a86185092ece4081b2c571fb6282a7c3/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 "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/pip-install-6ra5p5s7/pillow_a86185092ece4081b2c571fb6282a7c3/setup.py", line 914, in <module>
          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

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Pillow
  Running setup.py clean for Pillow
Failed to build lxml Pillow
Installing collected packages: Pillow, lxml, idna, html5lib, cssselect, configobj, click, beautifulsoup4, requests, nltk, goose3
  Attempting uninstall: Pillow
    Found existing installation: Pillow 9.4.0
    Uninstalling Pillow-9.4.0:
      Successfully uninstalled Pillow-9.4.0
  Running setup.py install for Pillow ... error
  error: subprocess-exited-with-error

  × Running setup.py install for Pillow did not run successfully.
  │ exit code: 1
  ╰─> [186 lines of output]
      running install
      /opt/homebrew/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.macosx-13-arm64-cpython-310
      creating build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageMode.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PngImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/SunImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/TarIO.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/BdfFontFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageStat.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageColor.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ContainerIO.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/MspImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/MicImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/_version.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GifImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageQt.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageMath.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PaletteFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FontFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PdfParser.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ExifTags.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageCms.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageChops.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PSDraw.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageFilter.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageDraw2.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImagePath.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/__init__.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/JpegPresets.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/features.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageDraw.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GimpGradientFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageWin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/_tkinter_finder.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageMorph.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/WalImageFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PcfFontFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageTk.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageOps.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageShow.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageEnhance.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageGrab.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FliImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/TiffTags.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/CurImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/_util.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/GdImageFile.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImagePalette.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageTransform.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageSequence.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PyAccess.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/_binary.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/Image.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/__main__.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/ImageFont.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/PIL
      copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-13-arm64-cpython-310/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 'azure-pipelines.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 '.azure-pipelines'
      no previously-included directories found matching '.ci'
      adding license file 'LICENSE'
      writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
      running build_ext

      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 "/private/var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/pip-install-6ra5p5s7/pillow_a86185092ece4081b2c571fb6282a7c3/setup.py", line 860, in <module>
          setup(
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/command/install.py", line 68, in run
          return orig.install.run(self)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/command/install.py", line 697, in run
          self.run_command('build')
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "/private/var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/pip-install-6ra5p5s7/pillow_a86185092ece4081b2c571fb6282a7c3/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 "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/vh/hsyhn8fs6zncqltbgpfpt6k40000gq/T/pip-install-6ra5p5s7/pillow_a86185092ece4081b2c571fb6282a7c3/setup.py", line 914, in <module>
          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

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Rolling back uninstall of Pillow
  Moving to /opt/homebrew/lib/python3.10/site-packages/PIL/
   from /opt/homebrew/lib/python3.10/site-packages/~IL
  Moving to /opt/homebrew/lib/python3.10/site-packages/Pillow-9.4.0.dist-info/
   from /opt/homebrew/lib/python3.10/site-packages/~illow-9.4.0.dist-info
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> Pillow

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

I'm pretty new to Python and I don't know what was wrong. Any ideas? Thank you!

LuChang-CS commented 1 year ago

Hi, thanks for your interest. This looks like a problem when you try to install lxml on MacOS. I checked your pypi source https://pypi.tuna.tsinghua.edu.cn/, it's kind of outdated. The latest lxml version is 4.9.2, while your source is 4.5.0.

Unfortunately, I don't have a Mac laptop so currently, I cannot reproduce this error and debug it for you. So I list some possible solutions here:

  1. Change the pypi source.
  2. Perhaps you can try to use conda environment and use conda install -c conda-forge lxml to install it.

By the way, NYT recently add recaptcha for robot check. This crawler may not work as usual.

Sin13 commented 4 months ago

I have the same issue on Debian.