Error installing pythonmagick , ImportError: No module named PythonMagick
Error installing pythonmagick , ImportError: No module named PythonMagick
我正在尝试在 OSX (High Sierra) 上安装 pythonmagick。
我在这里遵循了 DwishR 的说明:https://gist.github.com/tomekwojcik/2778301
从这里下载 pythonmagick:http://www.imagemagick.org/download/python/
修改BOOST_ROOT=/usr/local/Cellar/boost/1.66.0/
和生成文件。
在这里查看我的安装过程:https://gist.github.com/anonymous/d2eab85b89fd7be33efa40bf3cb1015e
但是,你可以看到最后pythonmagick没有工作。我做错了什么?
这似乎是一个相当老的包,缺少需要用 pip 安装的东西。
看看这个问题:
https://github.com/pypa/pip/issues/4629#issuecomment-317844966
我引用:
PythonMagick is on PyPi, but there are no source distribution, eggs, or wheels provided, so it can't be installed. PythonMagickWand as an egg, but only for Python 2.5!
我看到您正在使用 OSX High Sierra,所以您当前的 Python 2 版本是 2.7。您可以尝试使用 pyenv
和 python 2.5 构建 virtualenv,但也许 pgmagick 是合适的替代品?
请检查使用了哪个python。看起来您使用的系统 python 没有使用 /usr/local/lib/python2.7/site-packages/。你可能想用 brew 安装 python2:brew install python@2
.
我正在尝试在 OSX (High Sierra) 上安装 pythonmagick。
我在这里遵循了 DwishR 的说明:https://gist.github.com/tomekwojcik/2778301 从这里下载 pythonmagick:http://www.imagemagick.org/download/python/ 修改BOOST_ROOT=/usr/local/Cellar/boost/1.66.0/ 和生成文件。
在这里查看我的安装过程:https://gist.github.com/anonymous/d2eab85b89fd7be33efa40bf3cb1015e
但是,你可以看到最后pythonmagick没有工作。我做错了什么?
这似乎是一个相当老的包,缺少需要用 pip 安装的东西。
看看这个问题: https://github.com/pypa/pip/issues/4629#issuecomment-317844966
我引用:
PythonMagick is on PyPi, but there are no source distribution, eggs, or wheels provided, so it can't be installed. PythonMagickWand as an egg, but only for Python 2.5!
我看到您正在使用 OSX High Sierra,所以您当前的 Python 2 版本是 2.7。您可以尝试使用 pyenv
和 python 2.5 构建 virtualenv,但也许 pgmagick 是合适的替代品?
请检查使用了哪个python。看起来您使用的系统 python 没有使用 /usr/local/lib/python2.7/site-packages/。你可能想用 brew 安装 python2:brew install python@2
.