i m尝试在Windows上安装PGMAGICK库。我遵循正式页面:http://pypi.python.org/pypi/pgmagick/
从那里我可以注意到我需要先安装easy_install,pip,boost和GraphicsMagic。在此页面中,我找到了Easy_install:http://blog..troygrosfield.com/2010/12/18/installing-easy_install-and-pip-for-python/在此页面中,我可以找到PIP并提升:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pgmagick
但我不知道如何安装magick 。我去了网站下载它,但它仅安装了软件,当我尝试安装PGMAGICK时: PIP安装PGMAGICK
有一个错误我需要magick :
F:Python27Scripts>easy_install -ZU pgmagick
Searching for pgmagick
Reading http://pypi.python.org/simple/pgmagick/
Reading http://bitbucket.org/hhatto/pgmagick
Best match: pgmagick 0.5.4
Downloading http://pypi.python.org/packages/source/p/pgmagick/pgmagick-0.5.4.tar
.gz#md5=c10a454331ac1c359b39e50663fd28e4
Processing pgmagick-0.5.4.tar.gz
Running pgmagick-0.5.4setup.py -q bdist_egg --dist-dir f:docume~1alessa~1imp
ost~1tempeasy_install-xaypdopgmagick-0.5.4egg-dist-tmp-qu7mji
Traceback (most recent call last):
File "F:Python27Scriptseasy_install-script.py", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
1712, in main
with_ei_usage(lambda:
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
1700, in with_ei_usage
return f()
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
1716, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "F:Python27libdistutilscore.py", line 152, in setup
dist.run_commands()
File "F:Python27libdistutilsdist.py", line 953, in run_commands
self.run_command(cmd)
File "F:Python27libdistutilsdist.py", line 972, in run_command
cmd_obj.run()
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
211, in run
self.easy_install(spec, not self.no_deps)
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
476, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "F:Python27libsite-packagessetuptoolscommandeasy_install.py", line
919, in run_setup
run_setup(setup_script, args)
File "F:Python27libsite-packagessetuptoolssandbox.py", line 62, in run_se
tup
lambda: execfile(
File "F:Python27libsite-packagessetuptoolssandbox.py", line 105, in run
return func()
File "F:Python27libsite-packagessetuptoolssandbox.py", line 64, in <lambd
a>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 74, in <module>
Exception: Magick++ not found
谢谢!
我建议您使用来自非官方的Windows二进制文件中的预编译二进制包装,用于Python扩展程序包(如PGMAGICK网页中提到),而不是尝试从源头编译,这将是相当相当的复杂的过程。