python - 导入 matplotlib 的安全策略错误
问题描述
安装 matplotlib 后。使用此命令时出现此错误:
$ import matplotlib
import-im6.q16: attempt to perform an operation not allowed by the security policy `PS` @ error/constitute.c/IsCoderAuthorized/408.
谁能帮我解决这个问题?
解决方案
如果我import
从 shell 运行,这会发生在我身上。示范:
$ import
import-im6.q16: missing an image filename `import' @ error/import.c/ImportImageCommand/1289.
这个askubuntu
问题告诉我这import
是一个内置的 ImageMagick 命令。
解决方案
您首先必须启动 Python 交互式提示:
python
>>> import matplotlib
推荐阅读
- sql-server - 触发器中的变量什么都不抛出
- node.js - Node.js 中的 ERR_SSL_UNEXPECTED_MESSAGE 错误
- python - 每组特定值的熊猫频率
- git - Git流程问题,一个功能分支依赖于另一个
- javascript - 单元格通过单击更改背景颜色
- unity3d - ARCore unity:保存云锚点时出现ErrorNotSupportedByConfiguration
- firebase - 未捕获的 Firebase 异常
- java - 仅当文件未被写入时才将文件从源传输到目标
- xml - 各种 XML 定义的示例
- javascript - 如何将我的 chrome 扩展程序用于其他网站