我试图在CentOS上安装pgmagick。
运行pip install pgmagick
后,我遇到了一些错误。在我检查了日志文件之后,这就是我所拥有的:
Running setup.py egg_info for package pgmagick
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/root/build/pgmagick/setup.py", line 74, in <module>
raise Exception("Magick++ not found")
Exception: Magick++ not found
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/root/build/pgmagick/setup.py", line 74, in <module>
raise Exception("Magick++ not found")
Exception: Magick++ not found
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /root/build/pgmagick
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/lib/python2.6/site-packages/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.6/site-packages/pip/req.py", line 1009, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.6/site-packages/pip/req.py", line 225, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /root/build/pgmagick
我错过了什么吗?如何使它工作?
答案 0 :(得分:36)
我自己就是这样。对于将来通过Google访问的任何人,您首先需要另外两个包:
sudo apt-get install libgraphicsmagick++1-dev libboost-python-dev
答案 1 :(得分:4)
您可能错过了GraphicsMagick-c++-devel
包
(可从EPEL存储库获得)。
答案 2 :(得分:0)
对于Arch base发行版,您需要执行以下操作:
sudo pacman -S libmagick boost graphicsmagick imagemagick
答案 3 :(得分:0)
注意official installation guidance
pgmagick在类似UNIX的系统上可用。并取决于 以下库。
- GraphicsMagick(Magick++):图形库。 1.3.5及更高版本。
- Boost.Python:包装C ++代码。 1.40及更高版本。
$ sudo apt-get install libboost-python-dev libgraphicsmagick++1-dev
,如果您具有另一个操作系统,则可以选中installation page
之后,您可以通过pip安装来安装pgmagic
$ pip install pgmagick