Ошибка при установке ed25519 на Amazon EC2 Insance
pip install ed25519
на Amazon EC2
и это выводит:
Collecting ed25519
Using cached ed25519-1.4.tar.gz
Installing collected packages: ed25519
Running setup.py install for ed25519 ... error
Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-288n03qm/ed25519/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-fx2x0egg-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/ed25519
copying src/ed25519/_version.py -> build/lib.linux-x86_64-3.6/ed25519
copying src/ed25519/keys.py -> build/lib.linux-x86_64-3.6/ed25519
copying src/ed25519/test_ed25519.py -> build/lib.linux-x86_64-3.6/ed25519
copying src/ed25519/__init__.py -> build/lib.linux-x86_64-3.6/ed25519
UPDATING build/lib.linux-x86_64-3.6/ed25519/_version.py
set build/lib.linux-x86_64-3.6/ed25519/_version.py to '1.4'
running build_ext
building 'ed25519._ed25519' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
creating build/temp.linux-x86_64-3.6/src/ed25519-glue
creating build/temp.linux-x86_64-3.6/src/ed25519-supercop-ref
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/ed25519-supercop-ref -I/usr/include/python3.6m -c src/ed25519-glue/ed25519module.c -o build/temp.linux-x86_64-3.6/src/ed25519-glue/ed25519module.o
src/ed25519-glue/ed25519module.c:17:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1