pyminizipをインストールしようとしたところ、下記よりエラーとなったのですが、
こちらはどのようにすればインストールできるようになるかご教授ください。
[root@ip-10-0-0-30 ~]# pip --version
pip 19.1.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
[root@ip-10-0-0-30 zlib-1.2.11]# pip install pyminizip
Collecting pyminizip
Using cached https://files.pythonhosted.org/packages/a2/ba/00a44b218667e2fef5addf692ae6980e b85ededf5ff9b0d94694a5380bc9/pyminizip-0.2.4.tar.gz
Installing collected packages: pyminizip
Running setup.py install for pyminizip ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;_ file_='"'"'/tmp/pip-install-w2b046ac/pyminizip/setup.py'"'"';f=getattr(tokenize, '"'"'open' "'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(comp ile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-n528qgoz/install-recor d.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_ext
building 'pyminizip' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
creating build/temp.linux-x86_64-3.7/zlib-1.2.11
creating build/temp.linux-x86_64-3.7/zlib-1.2.11/contrib
creating build/temp.linux-x86_64-3.7/zlib-1.2.11/contrib/minizip
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY _SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switch es -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc -Izlib-1.2.11 -Izlib-1.2.11/co ntrib/minizip -I/usr/include/python3.7m -c src/py_minizip.c -o build/temp.linux-x86_64-3.7/sr c/py_minizip.o
src/py_minizip.c:17:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-in stall-w2b046ac/pyminizip/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);co de=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'" 'exec'"'"'))' install --record /tmp/pip-record-n528qgoz/install-record.txt --single-version-e xternally-managed --compile" failed with error code 1 in /tmp/pip-install-w2b046ac/pyminizip/
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。