Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install numerous packages #9157

Closed
OldSubSailor opened this issue Nov 21, 2020 · 10 comments
Closed

Unable to install numerous packages #9157

OldSubSailor opened this issue Nov 21, 2020 · 10 comments
Labels
type: support User Support

Comments

@OldSubSailor
Copy link

Environment

  • pip version: pip 20.2.4
  • Python version: 3.8.2 (default, Oct 2 2020, 10:45:42) macOS command line install.
  • OS: Big Sur but others are report the same issues with various versions of macOS/osX.

As indicated above, I have Python 3.8 installed via the command line and have not installed Python 3.9. Other users have 3.9 and report difficulty getting packages to install.

Description
I have tried to get packages via pip3 install (which evidently is not the way any more) and python3 -m pip install, with limited success.

Expected behavior
I expect the packages to install as they have in the past.
% python3 -m pip install numpy --user
Collecting numpy
Downloading numpy-1.19.4.zip (7.3 MB)
|████████████████████████████████| 7.3 MB 880 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: numpy
Building wheel for numpy (PEP 517) ... done
Created wheel for numpy: filename=numpy-1.19.4-cp38-cp38-macosx_10_14_6_x86_64.whl size=6393568 sha256=8de9d320b544b88f2c0f0173db3d6232689410aebb562b3a07a8fb571f9ad141
Stored in directory: /Users/trav/Library/Caches/pip/wheels/6d/16/41/249ad7da789b267243d1798090f061495fadbfb3113a6d94e2
Successfully built numpy
Installing collected packages: numpy
WARNING: The scripts f2py, f2py3 and f2py3.8 are installed in '/Users/trav/Library/Python/3.8/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.19.4

How to Reproduce

% python3 -m pip install shapely --user
Collecting shapely
Using cached Shapely-1.7.1.tar.gz (383 kB)
ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-72ho1ps3/shapely/setup.py'"'"'; file='"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-72ho1ps3/shapely/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-pip-egg-info-v1d320vm
cwd: /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-72ho1ps3/shapely/
Complete output (12 lines):
Failed CDLL(/Library/Frameworks/GEOS.framework/Versions/Current/GEOS)
Failed CDLL(/opt/local/lib/libgeos_c.dylib)
Failed CDLL(/usr/local/lib/libgeos_c.dylib)
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-72ho1ps3/shapely/setup.py", line 85, in
from shapely._buildcfg import geos_version_string, geos_version,
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-72ho1ps3/shapely/shapely/_buildcfg.py", line 190, in
lgeos = load_dll('geos_c', fallbacks=alt_paths)
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-72ho1ps3/shapely/shapely/_buildcfg.py", line 162, in load_dll
raise OSError(
OSError: Could not find library geos_c or load any of its variants ['/Library/Frameworks/GEOS.framework/Versions/Current/GEOS', '/opt/local/lib/libgeos_c.dylib', '/usr/local/lib/libgeos_c.dylib']
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

% python3 -m pip install pyproj
Defaulting to user installation because normal site-packages is not writeable
Collecting pyproj
Using cached pyproj-3.0.0.post1.tar.gz (663 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 /Users/trav/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/tmpvonxx8fi
cwd: /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-ouifg4u1/pyproj
Complete output (1 lines):
proj executable not found. Please set the PROJ_DIR variable. For more information see: https://pyproj4.github.io/pyproj/stable/installation.html

ERROR: Command errored out with exit status 1: /Library/Developer/CommandLineTools/usr/bin/python3 /Users/trav/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/tmpvonxx8fi Check the logs for full command output.

% python3 -m pip install pillow
Defaulting to user installation because normal site-packages is not writeable
Collecting pillow
Using cached Pillow-8.0.1.tar.gz (44.6 MB)
Building wheels for collected packages: pillow
Building wheel for pillow (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py'"'"'; file='"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/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 /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-wheel-r_9sxfx3
cwd: /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/
Complete output (174 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageMode.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/TarIO.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/BdfFontFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageStat.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageColor.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ContainerIO.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/_version.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageQt.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageMath.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PaletteFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FontFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PdfParser.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ExifTags.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageCms.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageChops.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PSDraw.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageFilter.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageDraw2.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImagePath.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/init.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/JpegPresets.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/features.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageDraw.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageWin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageMorph.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/WalImageFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PcfFontFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageTk.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageOps.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageShow.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageEnhance.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageGrab.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/TiffTags.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/_util.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GdImageFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImagePalette.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageTransform.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageSequence.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PyAccess.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/_binary.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/Image.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/main.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageFont.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.c'
warning: no files found matching '
.h'
warning: no files found matching '.sh'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files matching '.git
' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.so' found anywhere in distribution
no previously-included directories found matching '.ci'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running 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 "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py", line 861, in
setup(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/Users/trav/Library/Python/3.8/lib/python/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py", line 698, in build_extensions
raise RequiredDependencyException(f)
main.RequiredDependencyException: jpeg

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py", line 914, in
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


ERROR: 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
ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py'"'"'; file='"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/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 /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-record-3nqn_nfw/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/trav/Library/Python/3.8/include/python3.8/pillow
cwd: /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/
Complete output (176 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageMode.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/TarIO.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/BdfFontFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageStat.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageColor.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ContainerIO.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/_version.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageQt.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageMath.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PaletteFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FontFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PdfParser.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ExifTags.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageCms.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageChops.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PSDraw.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageFilter.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageDraw2.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImagePath.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/init.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/JpegPresets.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/features.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageDraw.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageWin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageMorph.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/WalImageFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PcfFontFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageTk.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageOps.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageShow.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageEnhance.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageGrab.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/TiffTags.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/_util.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/GdImageFile.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImagePalette.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageTransform.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageSequence.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PyAccess.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/_binary.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/Image.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/main.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/ImageFont.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-10.14.6-x86_64-3.8/PIL
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.c'
warning: no files found matching '
.h'
warning: no files found matching '.sh'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files matching '.git
' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.so' found anywhere in distribution
no previously-included directories found matching '.ci'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running 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 "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py", line 861, in <module>
    setup(
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/install.py", line 561, in run
    self.run_command('build')
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
    _build_ext.run(self)
  File "/Users/trav/Library/Python/3.8/lib/python/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py", line 698, in build_extensions
    raise RequiredDependencyException(f)
__main__.RequiredDependencyException: jpeg

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py", line 914, 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


----------------------------------------

ERROR: Command errored out with exit status 1: /Library/Developer/CommandLineTools/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/pillow/setup.py'"'"'; file='"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-930l9fwe/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 /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-record-3nqn_nfw/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/trav/Library/Python/3.8/include/python3.8/pillow Check the logs for full command output.
%

% python3 -m pip install rtree
Defaulting to user installation because normal site-packages is not writeable
Collecting rtree
Using cached Rtree-0.9.4.tar.gz (62 kB)
ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-gz7kj_ic/rtree/setup.py'"'"'; file='"'"'/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-gz7kj_ic/rtree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-pip-egg-info-mgse2op8
cwd: /private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-gz7kj_ic/rtree/
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-gz7kj_ic/rtree/setup.py", line 3, in
import rtree
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-gz7kj_ic/rtree/rtree/init.py", line 1, in
from .index import Rtree
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-gz7kj_ic/rtree/rtree/index.py", line 6, in
from . import core
File "/private/var/folders/ky/x8v1t9bd4qlc3k10xxg44jcw0000gn/T/pip-install-gz7kj_ic/rtree/rtree/core.py", line 143, in
rt.Error_GetLastErrorNum.restype = ctypes.c_int
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/init.py", line 378, in getattr
func = self.getitem(name)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/init.py", line 383, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(RTLD_DEFAULT, Error_GetLastErrorNum): symbol not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

That just seems to be a lot at one time.

@OldSubSailor
Copy link
Author

I am running under Big Sur. I can get this to work if I do the following with Xcode or perhaps Apple Command Line Tools installed, along with Python3.9. It will not work with Python 3.8.2, the default installed with Command Line Tools
Python3.9 -m pip install packagename --user

@pradyunsg
Copy link
Member

Same as #9138

@OldSubSailor
Copy link
Author

OldSubSailor commented Nov 22, 2020 via email

@pradyunsg pradyunsg reopened this Nov 22, 2020
@pradyunsg
Copy link
Member

Do you have wheels disabled in some way? What's the output of pip debug for you?

@OldSubSailor
Copy link
Author

OldSubSailor commented Nov 22, 2020 via email

@pradyunsg
Copy link
Member

Sure thing! Happy to help! ^>^

  • You'll want to install Python 3.8, since Python 3.9 doesn't have already-compiled binaries (called wheels) available on Python Package Index (the place where pip downloads and installs things from: https://pypi.org).
  • You'll want to do python3.8 -m pip install ... in the script.

That'll look like:

# Install dependencies
brew install python@3.8 gdal spatialindex p7zip

# Install pyproj
python3.8 -m pip install cython
python3.8 -m pip install git+https://github.com/jswhit/pyproj.git

# Install other dependencies
python3.8 -m pip install numpy shapely rtree pillow requests

@pradyunsg pradyunsg added the type: support User Support label Nov 23, 2020
@OldSubSailor
Copy link
Author

OldSubSailor commented Nov 23, 2020 via email

@OldSubSailor
Copy link
Author

OldSubSailor commented Nov 24, 2020 via email

@pradyunsg
Copy link
Member

pradyunsg commented Dec 1, 2020

Sorry, but I don't have a Big Sur system at hand to provide help with that issue.

I think that python-list (email), #python on Freenode (IRC), Python Discord or StackOverflow would be better channels to get support for the issue you're facing -- they have a larger community of folks, who'd likely be better positioned to provide you with the help you need. :)

@OldSubSailor
Copy link
Author

I appreciate your efforts. There is something odd going on. I think that we will close this out.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: support User Support
Projects
None yet
Development

No branches or pull requests

2 participants