سلام
کل متن هنگام نصب :
The directory '/home/ali/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/home/ali/.cache/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 the -H flag.
The directory '/home/ali/.cache/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 the -H flag.
Collecting mitmproxy
Downloading mitmproxy-0.11.3.tar.gz (6.2MB)
100% |################################| 6.2MB 20kB/s
Collecting urwid>=1.1 (from mitmproxy)
Downloading urwid-1.3.0.tar.gz (580kB)
100% |################################| 581kB 45kB/s
Collecting pyasn1>0.1.2 (from mitmproxy)
Downloading pyasn1-0.1.7.tar.gz (68kB)
100% |################################| 69kB 77kB/s
Collecting tornado>=4.0.2 (from mitmproxy)
Downloading tornado-4.1.tar.gz (332kB)
100% |################################| 335kB 71kB/s
Collecting lxml>=3.3.6 (from mitmproxy)
Downloading lxml-3.4.2.tar.gz (3.5MB)
100% |################################| 3.5MB 41kB/s
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.2.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
Collecting pyOpenSSL>=0.14 (from mitmproxy)
Downloading pyOpenSSL-0.14.tar.gz (128kB)
100% |################################| 131kB 85kB/s
Requirement already satisfied (use --upgrade to upgrade): Pillow>=2.3.0 in /usr/lib/python2.7/dist-packages (from mitmproxy)
Collecting configargparse>=0.9.3 (from mitmproxy)
Downloading ConfigArgParse-0.9.3.tar.gz
Collecting netlib<0.12,>=0.11 (from mitmproxy)
Downloading netlib-0.11.2.tar.gz (43kB)
100% |################################| 45kB 61kB/s
Collecting certifi (from tornado>=4.0.2->mitmproxy)
Downloading certifi-14.05.14.tar.gz (168kB)
100% |################################| 172kB 81kB/s
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:282: UserWarning: Normalizing '14.05.14' to '14.5.14'
normalized_version,
Collecting backports.ssl-match-hostname (from tornado>=4.0.2->mitmproxy)
Downloading backports.ssl_match_hostname-3.4.0.2.tar.gz
Collecting cryptography>=0.2.1 (from pyOpenSSL>=0.14->mitmproxy)
Downloading cryptography-0.8.1.tar.gz (268kB)
100% |################################| 270kB 95kB/s
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/lib/python2.7/dist-packages (from pyOpenSSL>=0.14->mitmproxy)
Collecting passlib>=1.6.2 (from netlib<0.12,>=0.11->mitmproxy)
Downloading passlib-1.6.2.tar.gz (408kB)
100% |################################| 409kB 40kB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitmproxy)
Collecting enum34 (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitmproxy)
Downloading enum34-1.0.4.tar.gz
Collecting cffi>=0.8 (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitmproxy)
Downloading cffi-0.9.2.tar.gz (209kB)
100% |################################| 212kB 1.2MB/s
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=0.8->cryptography>=0.2.1->pyOpenSSL>=0.14->mitmproxy)
Installing collected packages: cffi, enum34, passlib, cryptography, backports.ssl-match-hostname, certifi, netlib, configargparse, pyOpenSSL, lxml, tornado, pyasn1, urwid, mitmproxy
Running setup.py install for cffi
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
building '_cffi_backend' extension
i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-i686-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-i686-2.7/cffi
copying cffi/api.py -> build/lib.linux-i686-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-i686-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-i686-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-i686-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-i686-2.7/cffi
copying cffi/model.py -> build/lib.linux-i686-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-i686-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-i686-2.7/cffi
copying cffi/lock.py -> build/lib.linux-i686-2.7/cffi
copying cffi/gc_weakref.py -> build/lib.linux-i686-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-i686-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/c
i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-i686-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zIFtLW/cffi
متن ارور با رنگ قرمز در آخر:
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zIFtLW/cffi
من زیاد لینوکس بلد نیستم لطفا قدم به قدم توضیح بدید.
ممنون