【问题标题】:Getting ModuleNotFoundError: No module named 'PythonMagick' in Python获取 ModuleNotFoundError:Python 中没有名为“PythonMagick”的模块
【发布时间】:2021-02-25 11:19:22
【问题描述】:

我正在尝试导入 PythonMagick 但无法导入此模块。你能帮我如何安装它并在我的代码中使用它吗?

我尝试了几种方法-

python -m pip install PythonMagic
python -m pip install PythonMagic --user

我下载了 Imagemagic 和 ghostscript,并在环境变量中给出了它们的路径。但没有得到任何解决方案。

【问题讨论】:

标签: python python-3.x imagemagick pythonmagick


【解决方案1】:

尝试从https://www.lfd.uci.edu/~gohlke/pythonlibs/#pythonmagick下载whl文件 然后用python -m pip install <whl file>安装

【讨论】:

  • 错误:PythonMagick-0.9.19-cp39-cp39-win_amd64.whl 不是该平台支持的滚轮。
  • 你用的是什么python版本? cp39 表示它需要 python 3.9
  • 错误:PythonMagick-0.9.10-cp27-none-win_amd64.whl 不是该平台支持的滚轮。
  • 我使用的是 python 2.7
猜你喜欢
  • 2021-11-06
  • 2019-07-30
  • 1970-01-01
  • 1970-01-01
  • 2021-05-06
  • 1970-01-01
  • 2022-07-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多