python - python:在同一个文件夹中运行两个matplotlib进程
问题描述
我在同一个文件夹中运行多个 python 实例。我正在开发一个交互式集群。我发送了大约 10 个运行和生成图形的批处理matplotlib
,我还想运行一个交互式ipython
会话(也生成图形)。以交互方式工作时,我收到以下错误,并且我的一个批处理由于相同的消息而失败。我不明白为什么在交互工作时会发生此错误,并且我习惯于发送多个生成图形的进程并且它们彼此不交互。另外,我认为集群本身已经更新,因为现在我正在使用TkAgg
后端的批处理作业中生成数字,而这在过去会产生错误和失败。
TimeoutError: LOCKERROR: matplotlib is trying to acquire the lock
'/<home>/.cache/matplotlib/tex.cache/.matplotlib_lock-*'
and has failed. This maybe due to any other process holding this
lock. If you are sure no other matplotlib process is running try
removing these folders and trying again.
编辑:
matplotlib 版本:2.2.2
解决方案
推荐阅读
- javascript - 映射两个对象数组,匹配属性并将特定信息存储在新数组中
- c++ - 如何将编译器标志从 clang 传递给 nvcc
- python - How to find position of letters in array of strings
- github-actions - 只有主分支中的 .github/workflows 文件夹重要吗?
- asp.net-mvc - How Can I add a dollar symbol in ASP.NET MVC5?
- python - 如果我将脚本命名为“string.py”或“math.py”,“导入”操作的行为会有所不同。为什么会这样?
- scala - Flink does not allow Immutable style setters for POJO object when using scala case classes
- scala - Scala:列出与目录中的正则表达式匹配的文件
- c# - 无法使用 FirstOrDefault() 和条件编写包含查询
- r - 处理图例中的“缺失”标签:tmap