Pip 在centos7上安装mitmproxy

Pip 在centos7上安装mitmproxy,pip,pillow,centos7,mitmproxy,Pip,Pillow,Centos7,Mitmproxy,我在centos7 x64上安装mitmproxy时遇到问题。 我已在我的操作系统上安装: 程序包libxslt-devel-1.1.28-5.el7.x86_64已安装且为最新版本 已安装程序包libxml2-devel-2.9.1-5.el7_1.2.x86_64,且为最新版本 已安装程序包libxml2-devel-2.9.1-5.el7_1.2.x86_64,且为最新版本 程序包libxslt-devel-1.1.28-5.el7.x86_64已安装且为最新版本 [root@local

我在centos7 x64上安装mitmproxy时遇到问题。 我已在我的操作系统上安装:

  • 程序包libxslt-devel-1.1.28-5.el7.x86_64已安装且为最新版本
  • 已安装程序包libxml2-devel-2.9.1-5.el7_1.2.x86_64,且为最新版本
  • 已安装程序包libxml2-devel-2.9.1-5.el7_1.2.x86_64,且为最新版本
  • 程序包libxslt-devel-1.1.28-5.el7.x86_64已安装且为最新版本
  • [root@localhost~]#python-V>python2.7.3
  • 已安装程序包libffi-devel-3.0.13-11.el7.x86_64,且为最新版本
  • 包python-urllib3-1.10.2-2.el7_1.noarch已安装且为最新版本
  • 包python-pillow-2.0.0-17.gitd1c6db8.el7.x86_64已安装且为最新版本
错误是:

[root@localhost ~]# pip install mitmproxy 
 Failed building wheel for Pillow
Failed to build Pillow
Installing collected packages: Pillow, construct, html2text, mitmproxy
Running setup.py install for Pillow
Complete output from command /usr/local/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-JmmUK9/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-sQcNE2-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running egg_info
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
writing dependency_links to Pillow.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'Pillow.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-JmmUK9/Pillow/setup.py", line 767, in <module>
    zip_safe=not debug_build(),
  File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/local/lib/python2.7/distutils/command/install.py", line 563, in run
    self.run_command('build')
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/tmp/pip-build-JmmUK9/Pillow/setup.py", line 515, in build_extensions
    % (f, f))
ValueError: --enable-jpeg requested but jpeg not found, aborting.

----------------------------------------
Command "/usr/local/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-JmmUK9/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-sQcNE2-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-JmmUK9/Pillow
[root@localhost~]#pip安装mitmproxy
失败的建设车轮枕头
未能生成枕头
安装收集的软件包:枕头、构造、html2text、mitmproxy
正在运行枕头的setup.py安装
从命令/usr/local/bin/python-c“import setuptools,tokenize;uuu file_uuu=”/tmp/pip-build-JmmUK9/Pillow/setup.py';exec(compile(getattr(tokenize,'open',open)(uu文件uu)。read().replace('\r\n','n'),u文件uu,'exec'))安装--record/tmp/pip-sQcNE2 record/install-record.txt--外部管理的单一版本--编译:
正在运行的安装
运行构建
运行build\u py
运行蛋_信息
书写枕头。鸡蛋信息/PKG-info
将顶级名称写入Pillow.egg-info/top_level.txt
正在将dependency_链接写入Pillow.egg-info/dependency_links.txt
警告:未找到清单制造商:标准文件'-c'
正在读取清单文件'Pillow.egg info/SOURCES.txt'
正在读取清单模板“manifest.in”
正在编写清单文件'Pillow.egg info/SOURCES.txt'
运行build_ext
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-build-JmmUK9/Pillow/setup.py”,第767行,在
zip\u safe=不调试\u build(),
文件“/usr/local/lib/python2.7/distutils/core.py”,第152行,在安装程序中
dist.run_命令()
文件“/usr/local/lib/python2.7/distutils/dist.py”,第953行,在run_命令中
self.run_命令(cmd)
文件“/usr/local/lib/python2.7/distutils/dist.py”,第972行,在run_命令中
cmd_obj.run()
文件“/usr/local/lib/python2.7/site packages/setuptools/command/install.py”,第61行,正在运行
返回原始安装运行(自身)
文件“/usr/local/lib/python2.7/distutils/command/install.py”,第563行,正在运行
self.run_命令('build'))
文件“/usr/local/lib/python2.7/distutils/cmd.py”,第326行,在run_命令中
self.distribution.run_命令(command)
文件“/usr/local/lib/python2.7/distutils/dist.py”,第972行,在run_命令中
cmd_obj.run()
文件“/usr/local/lib/python2.7/distutils/command/build.py”,第127行,正在运行
self.run_命令(cmd_名称)
文件“/usr/local/lib/python2.7/distutils/cmd.py”,第326行,在run_命令中
self.distribution.run_命令(command)
文件“/usr/local/lib/python2.7/distutils/dist.py”,第972行,在run_命令中
cmd_obj.run()
文件“/usr/local/lib/python2.7/distutils/command/build_ext.py”,第339行,正在运行
self.build_扩展()
文件“/tmp/pip-build-JmmUK9/Pillow/setup.py”,第515行,内置扩展名
%(f,f))
ValueError:--启用请求的jpeg,但未找到jpeg,正在中止。
----------------------------------------
命令“/usr/local/bin/python-c”导入setuptools,标记化__文件_u_='/tmp/pip-build-JmmUK9/Pillow/setup.py';exec(compile(getattr(tokenize,'open',open)(uuu文件uu).read().replace('\r\n','\n'),uu文件uu,'exec'))“install--record/tmp/pip-sQcNE2-record/install-record.txt--外部管理的单一版本--compile”失败,错误代码为/tmp/pip-build-JmmUK9/1

查看下列依赖项:


对于centos7,您至少缺少
libjpeg 8 dev

。此软件包是libjpeg-turbo-devel