0

我正在尝试在 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 和 boost: http://www .lfd.uci.edu/~gohlke/pythonlibs/#pgmagick

但我不知道如何安装magick++。我去网站下载了它,但它只安装了软件,当我尝试像这样安装 pgmagick 时: pip install pgmagick

有一个错误,我需要 magick++:

F:\Python27\Scripts>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.4\setup.py -q bdist_egg --dist-dir f:\docume~1\alessa~1\imp
ost~1\temp\easy_install-xaypdo\pgmagick-0.5.4\egg-dist-tmp-qu7mji
Traceback (most recent call last):
  File "F:\Python27\Scripts\easy_install-script.py", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
1712, in main
    with_ei_usage(lambda:
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
1700, in with_ei_usage
    return f()
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
1716, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "F:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "F:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "F:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
211, in run
    self.easy_install(spec, not self.no_deps)
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
446, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
476, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
655, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
930, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "F:\Python27\lib\site-packages\setuptools\command\easy_install.py", line
919, in run_setup
    run_setup(setup_script, args)
  File "F:\Python27\lib\site-packages\setuptools\sandbox.py", line 62, in run_se
tup
    lambda: execfile(
  File "F:\Python27\lib\site-packages\setuptools\sandbox.py", line 105, in run
    return func()
  File "F:\Python27\lib\site-packages\setuptools\sandbox.py", line 64, in <lambd
a>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 74, in <module>
Exception: Magick++ not found

谢谢!

4

1 回答 1

4

我建议您使用来自Unofficial Windows Binaries for Python Extension Packages的预编译二进制包(如pgmagick网页中所述),而不是尝试从源代码编译,这将是一个相当复杂的过程。

于 2012-10-19T12:39:53.923 回答