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
Related
I am trying to use the pillow package but it doesn't want to install. It works on my windows 10 machine, but I need it to work on my other machine, which is windows 11, as well. My pip version is the same on both machines: 22.2.2 and I tried upgrading pip, it doesn't help. I tried reinstalling python but noticed something weird. When I type python --version, my current python version is 3.8.7 and I don't know why. I uninstalled python via controll panel, there is no python visible in the list in controll panel anymore, where does this python come from and how do I get rid of it so that I can use python 3.10? And will this also solve the problem of not being able to install pipllow. This is the full error message I recieve when trying python -m pip install pillow
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.8\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.8\site-packages)
Collecting pillow
Using cached Pillow-9.2.0.tar.gz (50.0 MB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pillow
Building wheel for pillow (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [181 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.mingw-3.8
creating build\lib.mingw-3.8\PIL
copying src\PIL\BdfFontFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\BlpImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\BmpImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\BufrStubImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ContainerIO.py -> build\lib.mingw-3.8\PIL
copying src\PIL\CurImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\DcxImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\DdsImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\EpsImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ExifTags.py -> build\lib.mingw-3.8\PIL
copying src\PIL\features.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FitsImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FitsStubImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FliImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FontFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FpxImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FtexImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GbrImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GdImageFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GifImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GimpGradientFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GimpPaletteFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GribStubImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\Hdf5StubImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\IcnsImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\IcoImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\Image.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageChops.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageCms.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageColor.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageDraw.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageDraw2.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageEnhance.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageFilter.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageFont.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageGrab.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageMath.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageMode.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageMorph.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageOps.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImagePalette.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImagePath.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageQt.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageSequence.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageShow.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageStat.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageTk.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageTransform.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageWin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImtImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\IptcImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\Jpeg2KImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\JpegImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\JpegPresets.py -> build\lib.mingw-3.8\PIL
copying src\PIL\McIdasImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\MicImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\MpegImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\MpoImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\MspImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PaletteFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PalmImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PcdImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PcfFontFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PcxImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PdfImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PdfParser.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PixarImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PngImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PpmImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PsdImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PSDraw.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PyAccess.py -> build\lib.mingw-3.8\PIL
copying src\PIL\SgiImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\SpiderImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\SunImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\TarIO.py -> build\lib.mingw-3.8\PIL
copying src\PIL\TgaImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\TiffImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\TiffTags.py -> build\lib.mingw-3.8\PIL
copying src\PIL\WalImageFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\WebPImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\WmfImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\XbmImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\XpmImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\XVThumbImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_binary.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_deprecate.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_tkinter_finder.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_util.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_version.py -> build\lib.mingw-3.8\PIL
copying src\PIL\__init__.py -> build\lib.mingw-3.8\PIL
copying src\PIL\__main__.py -> build\lib.mingw-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 requirements to src\Pillow.egg-info\requires.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 files found matching '*.txt'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.clang-format'
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'
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 "C:\Users\sofie\AppData\Local\Temp\pip-install-43p29232\pillow_96fe495f59934c0c8237da68ac991778\setup.py", line 995, in <module>
setup(
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\msys64\mingw64\lib\python3.8\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\sofie\AppData\Local\Temp\pip-install-43p29232\pillow_96fe495f59934c0c8237da68ac991778\setup.py", line 810, 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 "C:\Users\sofie\AppData\Local\Temp\pip-install-43p29232\pillow_96fe495f59934c0c8237da68ac991778\setup.py", line 1015, 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 pillow
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.8\site-packages)
Installing collected packages: pillow
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
╰─> [185 lines of output]
running install
C:\msys64\mingw64\lib\python3.8\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-3.8
creating build\lib.mingw-3.8\PIL
copying src\PIL\BdfFontFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\BlpImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\BmpImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\BufrStubImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ContainerIO.py -> build\lib.mingw-3.8\PIL
copying src\PIL\CurImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\DcxImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\DdsImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\EpsImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ExifTags.py -> build\lib.mingw-3.8\PIL
copying src\PIL\features.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FitsImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FitsStubImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FliImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FontFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FpxImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\FtexImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GbrImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GdImageFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GifImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GimpGradientFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GimpPaletteFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\GribStubImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\Hdf5StubImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\IcnsImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\IcoImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\Image.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageChops.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageCms.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageColor.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageDraw.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageDraw2.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageEnhance.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageFilter.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageFont.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageGrab.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageMath.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageMode.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageMorph.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageOps.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImagePalette.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImagePath.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageQt.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageSequence.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageShow.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageStat.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageTk.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageTransform.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImageWin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\ImtImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\IptcImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\Jpeg2KImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\JpegImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\JpegPresets.py -> build\lib.mingw-3.8\PIL
copying src\PIL\McIdasImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\MicImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\MpegImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\MpoImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\MspImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PaletteFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PalmImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PcdImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PcfFontFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PcxImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PdfImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PdfParser.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PixarImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PngImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PpmImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PsdImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PSDraw.py -> build\lib.mingw-3.8\PIL
copying src\PIL\PyAccess.py -> build\lib.mingw-3.8\PIL
copying src\PIL\SgiImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\SpiderImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\SunImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\TarIO.py -> build\lib.mingw-3.8\PIL
copying src\PIL\TgaImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\TiffImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\TiffTags.py -> build\lib.mingw-3.8\PIL
copying src\PIL\WalImageFile.py -> build\lib.mingw-3.8\PIL
copying src\PIL\WebPImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\WmfImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\XbmImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\XpmImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\XVThumbImagePlugin.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_binary.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_deprecate.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_tkinter_finder.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_util.py -> build\lib.mingw-3.8\PIL
copying src\PIL\_version.py -> build\lib.mingw-3.8\PIL
copying src\PIL\__init__.py -> build\lib.mingw-3.8\PIL
copying src\PIL\__main__.py -> build\lib.mingw-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 requirements to src\Pillow.egg-info\requires.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 files found matching '*.txt'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.clang-format'
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'
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 "C:\Users\sofie\AppData\Local\Temp\pip-install-43p29232\pillow_96fe495f59934c0c8237da68ac991778\setup.py", line 995, in <module>
setup(
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\command\install.py", line 68, in run
return orig.install.run(self)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\command\install.py", line 670, in run
self.run_command('build')
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "C:\msys64\mingw64\lib\python3.8\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\sofie\AppData\Local\Temp\pip-install-43p29232\pillow_96fe495f59934c0c8237da68ac991778\setup.py", line 810, 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 "C:\Users\sofie\AppData\Local\Temp\pip-install-43p29232\pillow_96fe495f59934c0c8237da68ac991778\setup.py", line 1015, 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: 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.
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.8\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.8\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\msys64\mingw64\lib\python3.8\site-packages)
Though I have never encountered this problem, but from the error messages, I am guessing it's a problem with missing modules.
__main__.RequiredDependencyException:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Try run import zlib, see if there is any errors importing the module. Install zlib if you don't have it yet.
Also, there is an issue on the Pillow repo on GitHub reporting the same problem. According to that, you can also try re-install pip see if that solves the problem.
Hope this helps.
https://pillow.readthedocs.io/en/latest/installation.html
see that
i just solve it now , it take me alot of time
i had error when import matplotlib
first cut or delete or uninstall PIL. i delete it
and then
python3 -m pip install --upgrade Pillow
or pip install --upgrade Pillow
or see in web to find version
I am having a nightmare of a time installing Pillow on my apple silicon. Everytime I attempt to install it, it throws a truly massive error which I have posted below. It says wheel is not installed but it is installed. It also says to refer to the Pillow page which I have done. I also installed homebrew and tried it that way. I really like this labtop and the m1 chip but if I need Pillow and python to work. Can anyone help me??
Collecting Pillow
Using cached Pillow-8.1.0.tar.gz (44.9 MB)
Using legacy 'setup.py install' for Pillow, since package 'wheel' is not installed.
Installing collected packages: Pillow
Running setup.py install for Pillow ... error
ERROR: Command errored out with exit status 1:
command: /Users/myname/PycharmProjects/WestCorp/venv2/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-install-7aau8lns/pillow_2e71e6817697421fbee1ad980c7f610f/setup.py'"'"'; __file__='"'"'/private/var/folders/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-install-7aau8lns/pillow_2e71e6817697421fbee1ad980c7f610f/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/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-record-6pvy22mf/install-record.txt --single-version-externally-managed --compile --install-headers /Users/myname/PycharmProjects/WestCorp/venv2/include/site/python3.9/Pillow
cwd: /private/var/folders/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-install-7aau8lns/pillow_2e71e6817697421fbee1ad980c7f610f/
Complete output (174 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-3.9
creating build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageMode.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/TarIO.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/BdfFontFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageStat.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageColor.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ContainerIO.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/_version.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageQt.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageMath.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PaletteFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/FontFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PdfParser.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ExifTags.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageCms.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageChops.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PSDraw.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageFilter.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageDraw2.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImagePath.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/__init__.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/JpegPresets.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/features.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageDraw.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageWin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageMorph.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/WalImageFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PcfFontFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageTk.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageOps.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageShow.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageEnhance.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageGrab.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/TiffTags.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/_util.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/GdImageFile.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImagePalette.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageTransform.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageSequence.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PyAccess.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/_binary.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/Image.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/__main__.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/ImageFont.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-10.9-universal2-3.9/PIL
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.c'
warning: no files found matching '*.h'
warning: no files found matching '*.sh'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
no previously-included directories found matching '.ci'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running 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/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-install-7aau8lns/pillow_2e71e6817697421fbee1ad980c7f610f/setup.py", line 865, in <module>
setup(
File "/Users/myname/PycharmProjects/WestCorp/venv2/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/myname/PycharmProjects/WestCorp/venv2/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 546, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/myname/PycharmProjects/WestCorp/venv2/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/private/var/folders/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-install-7aau8lns/pillow_2e71e6817697421fbee1ad980c7f610f/setup.py", line 702, 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/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-install-7aau8lns/pillow_2e71e6817697421fbee1ad980c7f610f/setup.py", line 922, 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: /Users/myname/PycharmProjects/WestCorp/venv2/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-install-7aau8lns/pillow_2e71e6817697421fbee1ad980c7f610f/setup.py'"'"'; __file__='"'"'/private/var/folders/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-install-7aau8lns/pillow_2e71e6817697421fbee1ad980c7f610f/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/rl/5f06x3b503j2g7rg4xq_3kzr0000gn/T/pip-record-6pvy22mf/install-record.txt --single-version-externally-managed --compile --install-headers /Users/myname/PycharmProjects/WestCorp/venv2/include/site/python3.9/Pillow Check the logs for full command output.
Had the same issue on a M1 machine, running pip inside a VENV.
The solution appeared to be simple, I needed to upgrade pip*:
python3 -m pip install --upgrade pip
As is also recommended in Pillows officieel docs, see: https://pillow.readthedocs.io/en/stable/installation.html
Try these commands it will definitely work:-
(1) import sys
(2) !{sys.executable} -m pip install matplotlib
I'm not sure whether this works for you. try this.
Go to the Application folder -> Right-click on Terminal App ->
Get Info
Tick Open with Rosetta option.
try now.
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.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm trying to install the pygame module for Python, but I receive the following error in the traceback:
pip install pygame
Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 3241, in <module>
#_call_aside
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 3225, in _call_aside
f(*args, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 3254, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 585, in _build_master
return cls._build_from_requirements(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==20.1' distribution was not found and is required by the application
Juris-MacBook-Pro:~ j.alj0$ sudo pip3 install pygame
Password:
WARNING: The directory '/Users/j.alj0/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/Users/j.alj0/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pygame
Downloading https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz (3.2MB)
|████████████████████████████████| 3.2MB 464kB/s
Installing collected packages: pygame
Running setup.py install for pygame ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-q0y248fw/pygame/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-q0y248fw/pygame/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/tmp/pip-record-0t79g4wb/install-record.txt --single-version-externally-managed --compile
cwd: /private/tmp/pip-install-q0y248fw/pygame/
Complete output (219 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/surfarray.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/sysfont.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/_camera_vidcapture.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/sndarray.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/version.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/compat.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/draw_py.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/colordict.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/ftfont.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/midi.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/cursors.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/font.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/_numpysndarray.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/sprite.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/macosx.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/_numpysurfarray.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/camera.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/freetype.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/_camera_opencv_highgui.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/pkgdata.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/locals.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
copying src_py/_dummybackend.py -> build/lib.macosx-10.9-x86_64-3.8/pygame
creating build/lib.macosx-10.9-x86_64-3.8/pygame/threads
copying src_py/threads/Py25Queue.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/threads
copying src_py/threads/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/threads
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/base_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/font_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/mixer_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/rwobject_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/pixelcopy_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/overlay_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/scrap_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/touch_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/imageext_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/pixelarray_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/draw_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/transform_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/blit_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/bufferproxy_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/surfarray_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/mouse_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/surfarray_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/event_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/imageext_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/sprite_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/touch_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/gfxdraw_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/rect_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/scrap_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/overlay_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/color_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/camera_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/surflock_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/key_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/sysfont_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/font_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/mixer_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/constants_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/mixer_music_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/sndarray_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/image_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/version_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/freetype_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/joystick_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/midi_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/ftfont_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/image__save_gl_surface_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/cdrom_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/cursors_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/fastevent_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/display_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/fastevent_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/compat_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/ftfont_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/cdrom_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/mask_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/midi_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/freetype_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/math_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/time_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/image_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/threads_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/__main__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/mixer_music_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/sndarray_tags.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/test_test_.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
copying test/surface_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/endian.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/test_machinery.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/png.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/arrinter.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/buftools.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/test_utils
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests
copying test/run_tests__tests/run_tests__test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests
copying test/run_tests__tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_4_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_5_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/no_assertions__ret_code_of_1__test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/zero_tests_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_6_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/all_ok
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_4_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/failures1
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/incomplete
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/fake_1_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/infinite_loop
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_4_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stderr
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_4_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/print_stdout
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_3_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/magic_tag_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/invisible_tag_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/exclude
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/sleep_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/timeout
creating build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/sleep_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/magic_tag_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/fake_2_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/incomplete_todo_test.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/tests/run_tests__tests/everything
creating build/lib.macosx-10.9-x86_64-3.8/pygame/docs
copying docs/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/docs
copying docs/__main__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/docs
creating build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/playmus.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/mask.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/sound.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/overlay.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/aacircle.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/chimp.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/liquid.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/audiocapture.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/sound_array_demos.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/midi.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/scroll.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/cursors.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/moveit.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/blit_blends.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/testsprite.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/textinput.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/vgrade.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/arraydemo.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/stars.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/camera.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/blend_fill.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/fonty.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/headless_no_windows_needed.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/fastevents.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/prevent_display_stretching.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/glcube.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/aliens.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/freetype_misc.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/scaletest.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/video.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/eventlist.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/scrap_clipboard.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/oldalien.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/pixelarray.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
copying examples/dropevent.py -> build/lib.macosx-10.9-x86_64-3.8/pygame/examples
running build_ext
building 'pygame.gfxdraw' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/src_c
creating build/temp.macosx-10.9-x86_64-3.8/src_c/SDL_gfx
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DENABLE_NEWBUF=1 -I/NEED_INC_PATH_FIX -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c src_c/gfxdraw.c -o build/temp.macosx-10.9-x86_64-3.8/src_c/gfxdraw.o
In file included from src_c/gfxdraw.c:33:
In file included from src_c/pygame.h:32:
src_c/_pygame.h:216:10: fatal error: 'SDL.h' file not found
#include <SDL.h>
^~~~~~~
1 error generated.
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-q0y248fw/pygame/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-q0y248fw/pygame/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/tmp/pip-record-0t79g4wb/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Can someone help me out?
The relevant bit of your error output is
error: command 'gcc' failed with exit status 1
Almost certainly, you don't have gcc (the GNU C Compiler) installed. This is frequently needed with Python modules, because many of them are extension modules written in C, which need to be compiled first.
I googled "pip command 'gcc' failed with exit status 1" and found links to many existing StackOverflow questions. Always google the error message!
Try to do:
sudo easy_install-3.8 pygame
As the pygame installs through pip are known to have some issues on MacOS, as discussed here.
I had problems with this before. You are likely having one of 2 problems:
Set the path of pip which will be in scripts folder of Python probably and update your environment variables.
At the end of your error, it lets you know you have an out of date version of pip. Updating it to the latest version fixed this problem for me.
This question already has answers here:
pygame installation issue in mac os
(5 answers)
Closed 3 years ago.
I am trying to install pygame for Python 3 on an anaconda install.
I run pip install pygame, and it outputs the following:
Collecting pygame
Using cached pygame-1.9.3.tar.gz
Building wheels for collected packages: pygame
Running setup.py bdist_wheel for pygame ... error
Complete output from command //anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/pygame/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 /var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/tmpybu68q2lpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-x86_64-3.5
creating build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_camera_opencv_highgui.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_camera_vidcapture.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_dummybackend.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_numpysndarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_numpysurfarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/camera.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/colordict.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/compat.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/cursors.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/font.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/freetype.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/ftfont.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/locals.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/macosx.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/midi.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/pkgdata.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sndarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sprite.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/surfarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sysfont.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/version.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
creating build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/constants.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/locals.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
creating build/lib.macosx-10.6-x86_64-3.5/pygame/threads
copying lib/threads/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/threads
copying lib/threads/Py25Queue.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/threads
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/__main__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/base_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/blit_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/bufferproxy_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/camera_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cdrom_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cdrom_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/color_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/compat_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cursors_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/display_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/draw_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/event_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/fastevent_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/font_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/font_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/freetype_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/freetype_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/ftfont_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/ftfont_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/gfxdraw_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image__save_gl_surface_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/imageext_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/imageext_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/joystick_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/key_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mask_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/math_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/midi_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/midi_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mixer_music_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mixer_music_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mixer_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mixer_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/mouse_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/overlay_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/pixelarray_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/pixelcopy_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/rect_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/rwobject_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/scrap_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/scrap_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sndarray_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sndarray_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sprite_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surface_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surfarray_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surfarray_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surflock_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sysfont_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/test_test_.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/threads_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/time_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/transform_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/arrinter.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/buftools.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/endian.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/png.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/test_machinery.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/run_tests__test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_3_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_4_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_5_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_6_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/no_assertions__ret_code_of_1__test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/zero_tests_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/failures1
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_3_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/invisible_tag_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/magic_tag_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/sleep_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/timeout
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/incomplete_todo_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/magic_tag_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/sleep_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/everything
creating build/lib.macosx-10.6-x86_64-3.5/pygame/docs
copying docs/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/docs
copying docs/__main__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/docs
creating build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/aacircle.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/aliens.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/arraydemo.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/blend_fill.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/blit_blends.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/camera.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/chimp.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/cursors.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/eventlist.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/fastevents.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/fonty.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/freetype_misc.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/glcube.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/headless_no_windows_needed.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/liquid.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/mask.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/midi.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/moveit.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/oldalien.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/overlay.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/pixelarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/playmus.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/prevent_display_stretching.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/scaletest.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/scrap_clipboard.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/scroll.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/sound.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/sound_array_demos.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/stars.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/testsprite.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/vgrade.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
running build_ext
building 'pygame.scrap' extension
creating build/temp.macosx-10.6-x86_64-3.5
creating build/temp.macosx-10.6-x86_64-3.5/src
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda/include -arch x86_64 -DENABLE_NEWBUF=1 -I/NEED_INC_PATH_FIX -I//anaconda/include/python3.5m -c src/scrap.c -o build/temp.macosx-10.6-x86_64-3.5/src/scrap.o
src/scrap.c:27:10: fatal error: 'SDL.h' file not found
#include "SDL.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Failed building wheel for pygame
Running setup.py clean for pygame
Failed to build pygame
Installing collected packages: pygame
Running setup.py install for pygame ... error
Complete output from command //anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/pygame/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-yhcf0tlb-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-x86_64-3.5
creating build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_camera_opencv_highgui.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_camera_vidcapture.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_dummybackend.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_numpysndarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/_numpysurfarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/camera.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/colordict.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/compat.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/cursors.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/font.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/freetype.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/ftfont.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/locals.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/macosx.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/midi.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/pkgdata.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sndarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sprite.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/surfarray.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/sysfont.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
copying lib/version.py -> build/lib.macosx-10.6-x86_64-3.5/pygame
creating build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/constants.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
copying lib/gp2x/locals.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/gp2x
creating build/lib.macosx-10.6-x86_64-3.5/pygame/threads
copying lib/threads/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/threads
copying lib/threads/Py25Queue.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/threads
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/__main__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/base_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/blit_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/bufferproxy_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/camera_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cdrom_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cdrom_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/color_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/compat_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/cursors_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/display_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/draw_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/event_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/fastevent_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/font_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/font_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/freetype_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/freetype_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/ftfont_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/ftfont_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/gfxdraw_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image__save_gl_surface_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/image_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sprite_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surface_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surfarray_tags.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surfarray_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/surflock_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/sysfont_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/test_test_.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/threads_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/time_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
copying test/transform_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/arrinter.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/buftools.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/endian.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/png.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/test_machinery.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/test_utils
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
copying test/run_tests__tests/run_tests__test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_2_test.py ->
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_3_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_4_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/print_stdout
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/__init__.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_2_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_3_test.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.macosx-10.6-x86_64-3.5/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/__init__.py ->
copying examples/sound.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/sound_array_demos.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/stars.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/testsprite.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
copying examples/vgrade.py -> build/lib.macosx-10.6-x86_64-3.5/pygame/examples
running build_ext
building 'pygame.scrap' extension
creating build/temp.macosx-10.6-x86_64-3.5
creating build/temp.macosx-10.6-x86_64-3.5/src
/usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda/include -arch x86_64 -DENABLE_NEWBUF=1 -I/NEED_INC_PATH_FIX -I//anaconda/include/python3.5m -c src/scrap.c -o build/temp.macosx-10.6-x86_64-3.5/src/scrap.o
src/scrap.c:27:10: fatal error: 'SDL.h' file not found
#include "SDL.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Command "//anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/pygame/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-yhcf0tlb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/s0/514rk5j90q90x4s8n48ry7wc0000gn/T/pip-build-2n_0kk3y/pygame/
Yes, it's huge! I have cut out loads of lines like copying lib/... to fit inside the 30,000 character limit of SE.
I have tried the following:
pip install pygame
pip install pygame --no-cache-dir
pip install pygame --force-reinstall
pip install pygame --no-binary :all:
pip install pygame --no-use-wheel
They all gave basically the same error.
I can't work out what is wrong, as this is a brand new install of anaconda.
The lines:
#include "SDL.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
are obviously the most important part, which implies a bug in the code. Is there an obvious error here? If it is a Python script, then it shouldn't be run, as it is commented out.
I've googled the error, and other people with a similar error like here needed to run xcode-select --install to solve it.
If I run that, I get this:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
So that is not my problem.
There is also the important line:
Running setup.py bdist_wheel for pygame ... error
Does anyone have any insights that might help me?
Just run this and you'll be able to work with the latest version of PyGame.
This command installs the missing dependencies that cause your error.
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
Then you can run pip install pygame and it will work fine.
The problem is in new XCode that shut down some support ( I got similar issue with wxPython ) but I managed to make pygame work (version 1.9.2) so try pip install pygame==1.9.2 since it is by default trying to get 1.9.3
Also the #include "SDL.h" is C++, not python, so it is not a comment, rather it is importing a library SDL :)