Problem installing the PyGame module via pip [closed] - python

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.

Related

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

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

i am getting an error while installing pycrypto in windos 10 in visual studio code

I got this error while installing pycrypto in visual studio code. I tried previous answers it didn't work for me
Building wheel for pycrypto (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\uaahacker\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\uaahacker\\AppData\\Local\\Temp\\pip-install-703l_7f_\\pycrypto_4e1a5a16405a462790fc020871778555\\setup.py'"'"'; __file__='"'"'C:\\Users\\uaahacker\\AppData\\Local\\Temp\\pip-install-703l_7f_\\pycrypto_4e1a5a16405a462790fc020871778555\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\uaahacker\AppData\Local\Temp\pip-wheel-gjdeek8y'
cwd: C:\Users\uaahacker\AppData\Local\Temp\pip-install-703l_7f_\pycrypto_4e1a5a16405a462790fc020871778555\
Complete output (153 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\Crypto
copying lib\Crypto\pct_warnings.py -> build\lib.win32-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win32-3.8\Crypto
creating build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\hashalgo.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\HMAC.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD2.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD4.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD5.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\RIPEMD.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA224.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA256.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA384.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA512.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\__init__.py -> build\lib.win32-3.8\Crypto\Hash
creating build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC4.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\blockalgo.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\CAST.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\DES.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\DES3.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_OAEP.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_v1_5.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\XOR.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\__init__.py -> build\lib.win32-3.8\Crypto\Cipher
creating build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\asn1.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\Counter.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\number.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\py3compat.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\randpool.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\RFC1751.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\winrandom.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\_number_new.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\__init__.py -> build\lib.win32-3.8\Crypto\Util
creating build\lib.win32-3.8\Crypto\Random
copying lib\Crypto\Random\random.py -> build\lib.win32-3.8\Crypto\Random
copying lib\Crypto\Random\_UserFriendlyRNG.py -> build\lib.win32-3.8\Crypto\Random
copying lib\Crypto\Random\__init__.py -> build\lib.win32-3.8\Crypto\Random
creating build\lib.win32-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaAccumulator.py -> build\lib.win32-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaGenerator.py -> build\lib.win32-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\SHAd256.py -> build\lib.win32-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\__init__.py -> build\lib.win32-3.8\Crypto\Random\Fortuna
creating build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\fallback.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\nt.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\posix.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\rng_base.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\__init__.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
creating build\lib.win32-3.8\Crypto\SelfTest
copying lib\Crypto\SelfTest\st_common.py -> build\lib.win32-3.8\Crypto\SelfTest
copying lib\Crypto\SelfTest\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest
creating build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\common.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_AES.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC2.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC4.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_CAST.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES3.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_XOR.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
creating build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\common.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_HMAC.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD2.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD4.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD5.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_RIPEMD.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA224.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA256.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA384.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA512.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
creating build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_chaffing.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_KDF.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
creating build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_DSA.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_importKey.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_RSA.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
creating build\lib.win32-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_random.py -> build\lib.win32-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_rpoolcompat.py -> build\lib.win32-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py -> build\lib.win32-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Random
creating build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
creating build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_generic.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_nt.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_posix.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
creating build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_asn1.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_Counter.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_number.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_winrandom.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
creating build\lib.win32-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py -> build\lib.win32-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py -> build\lib.win32-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Signature
creating build\lib.win32-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\AllOrNothing.py -> build\lib.win32-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\Chaffing.py -> build\lib.win32-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\KDF.py -> build\lib.win32-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\__init__.py -> build\lib.win32-3.8\Crypto\Protocol
creating build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\DSA.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\ElGamal.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\pubkey.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\RSA.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_DSA.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_RSA.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_slowmath.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\__init__.py -> build\lib.win32-3.8\Crypto\PublicKey
creating build\lib.win32-3.8\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win32-3.8\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win32-3.8\Crypto\Signature
copying lib\Crypto\Signature\__init__.py -> build\lib.win32-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 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for pycrypto
Running setup.py clean for pycrypto
Failed to build pycrypto
Installing collected packages: pycrypto
Running setup.py install for pycrypto ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\uaahacker\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\uaahacker\\AppData\\Local\\Temp\\pip-install-703l_7f_\\pycrypto_4e1a5a16405a462790fc020871778555\\setup.py'"'"'; __file__='"'"'C:\\Users\\uaahacker\\AppData\\Local\\Temp\\pip-install-703l_7f_\\pycrypto_4e1a5a16405a462790fc020871778555\\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\uaahacker\AppData\Local\Temp\pip-record-9k1tmf02\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\uaahacker\appdata\local\programs\python\python38-32\Include\pycrypto'
cwd: C:\Users\uaahacker\AppData\Local\Temp\pip-install-703l_7f_\pycrypto_4e1a5a16405a462790fc020871778555\
Complete output (153 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\Crypto
copying lib\Crypto\pct_warnings.py -> build\lib.win32-3.8\Crypto
copying lib\Crypto\__init__.py -> build\lib.win32-3.8\Crypto
creating build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\hashalgo.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\HMAC.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD2.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD4.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\MD5.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\RIPEMD.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA224.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA256.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA384.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\SHA512.py -> build\lib.win32-3.8\Crypto\Hash
copying lib\Crypto\Hash\__init__.py -> build\lib.win32-3.8\Crypto\Hash
creating build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\AES.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC2.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\ARC4.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\blockalgo.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\Blowfish.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\CAST.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\DES.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\DES3.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_OAEP.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\PKCS1_v1_5.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\XOR.py -> build\lib.win32-3.8\Crypto\Cipher
copying lib\Crypto\Cipher\__init__.py -> build\lib.win32-3.8\Crypto\Cipher
creating build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\asn1.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\Counter.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\number.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\py3compat.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\randpool.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\RFC1751.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\winrandom.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\_number_new.py -> build\lib.win32-3.8\Crypto\Util
copying lib\Crypto\Util\__init__.py -> build\lib.win32-3.8\Crypto\Util
creating build\lib.win32-3.8\Crypto\Random
copying lib\Crypto\Random\random.py -> build\lib.win32-3.8\Crypto\Random
copying lib\Crypto\Random\_UserFriendlyRNG.py -> build\lib.win32-3.8\Crypto\Random
copying lib\Crypto\Random\__init__.py -> build\lib.win32-3.8\Crypto\Random
creating build\lib.win32-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaAccumulator.py -> build\lib.win32-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\FortunaGenerator.py -> build\lib.win32-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\SHAd256.py -> build\lib.win32-3.8\Crypto\Random\Fortuna
copying lib\Crypto\Random\Fortuna\__init__.py -> build\lib.win32-3.8\Crypto\Random\Fortuna
creating build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\fallback.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\nt.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\posix.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\rng_base.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
copying lib\Crypto\Random\OSRNG\__init__.py -> build\lib.win32-3.8\Crypto\Random\OSRNG
creating build\lib.win32-3.8\Crypto\SelfTest
copying lib\Crypto\SelfTest\st_common.py -> build\lib.win32-3.8\Crypto\SelfTest
copying lib\Crypto\SelfTest\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest
creating build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\common.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_AES.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC2.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_ARC4.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_Blowfish.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_CAST.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_DES3.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_15.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_pkcs1_oaep.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\test_XOR.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
copying lib\Crypto\SelfTest\Cipher\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Cipher
creating build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\common.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_HMAC.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD2.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD4.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_MD5.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_RIPEMD.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA224.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA256.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA384.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\test_SHA512.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
copying lib\Crypto\SelfTest\Hash\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Hash
creating build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_AllOrNothing.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_chaffing.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_KDF.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\test_rfc1751.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
copying lib\Crypto\SelfTest\Protocol\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Protocol
creating build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_DSA.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_ElGamal.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_importKey.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\test_RSA.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
copying lib\Crypto\SelfTest\PublicKey\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\PublicKey
creating build\lib.win32-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_random.py -> build\lib.win32-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test_rpoolcompat.py -> build\lib.win32-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\test__UserFriendlyRNG.py -> build\lib.win32-3.8\Crypto\SelfTest\Random
copying lib\Crypto\SelfTest\Random\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Random
creating build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaAccumulator.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_FortunaGenerator.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\test_SHAd256.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
copying lib\Crypto\SelfTest\Random\Fortuna\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\Fortuna
creating build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_fallback.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_generic.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_nt.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_posix.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\test_winrandom.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
copying lib\Crypto\SelfTest\Random\OSRNG\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Random\OSRNG
creating build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_asn1.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_Counter.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_number.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\test_winrandom.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
copying lib\Crypto\SelfTest\Util\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Util
creating build\lib.win32-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_15.py -> build\lib.win32-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\test_pkcs1_pss.py -> build\lib.win32-3.8\Crypto\SelfTest\Signature
copying lib\Crypto\SelfTest\Signature\__init__.py -> build\lib.win32-3.8\Crypto\SelfTest\Signature
creating build\lib.win32-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\AllOrNothing.py -> build\lib.win32-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\Chaffing.py -> build\lib.win32-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\KDF.py -> build\lib.win32-3.8\Crypto\Protocol
copying lib\Crypto\Protocol\__init__.py -> build\lib.win32-3.8\Crypto\Protocol
creating build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\DSA.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\ElGamal.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\pubkey.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\RSA.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_DSA.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_RSA.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\_slowmath.py -> build\lib.win32-3.8\Crypto\PublicKey
copying lib\Crypto\PublicKey\__init__.py -> build\lib.win32-3.8\Crypto\PublicKey
creating build\lib.win32-3.8\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_PSS.py -> build\lib.win32-3.8\Crypto\Signature
copying lib\Crypto\Signature\PKCS1_v1_5.py -> build\lib.win32-3.8\Crypto\Signature
copying lib\Crypto\Signature\__init__.py -> build\lib.win32-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 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\uaahacker\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\uaahacker\\AppData\\Local\\Temp\\pip-install-703l_7f_\\pycrypto_4e1a5a16405a462790fc020871778555\\setup.py'"'"'; __file__='"'"'C:\\Users\\uaahacker\\AppData\\Local\\Temp\\pip-install-703l_7f_\\pycrypto_4e1a5a16405a462790fc020871778555\\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\uaahacker\AppData\Local\Temp\pip-record-9k1tmf02\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\uaahacker\appdata\local\programs\python\python38-32\Include\pycrypto' Check the logs for full command output.
Try in a admin shell (on windows cmd):
pip install pycrypto
And also what did you try already?
I have the same problem and pip requires Microsoft Visual C++ 14.0 or greater.
But if you are using anaconda framework, I strongly recommend if you are using Windows OS, "conda" command installs it.
Open CMD with admin privileges.
conda install pycrypto

Pip Command Errored out with exit status 1 [duplicate]

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

"Command errored out with exit status 1" error when installing pygame [duplicate]

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 :)

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

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

Categories