我试图熟悉snakemake,并从tutorial开始。一切正常,直到步骤6:使用自定义脚本。显然,导入matplotlib时python代码崩溃。
我在教程主文件夹中运行以下命令:
snakemake
并收到以下错误消息:
Traceback (most recent call last):
File "/scratch/users/xxx/snakemake/tutorial/.snakemake/scripts/tmpfg_qprf9.plot-quals.py", line 5, in <module>
import matplotlib
File "/home/xxx/tools/miniconda3/envs/snakemake-tutorial/lib/python3.6/site-packages/matplotlib/__init__.py", line 141, in <module>
from . import cbook, rcsetup
File "/home/xxx/tools/miniconda3/envs/snakemake-tutorial/lib/python3.6/site-packages/matplotlib/cbook/__init__.py", line 33, in <module>
import numpy as np
File "/n/sw/centos6/numpy-1.7.1_python-2.7.3/lib/python2.7/site-packages/numpy/__init__.py", line 128, in <module>
from version import git_revision as __git_revision__
ModuleNotFoundError: No module named 'version'
据我了解,该想法是提供一个可以设置所有内容的环境。实际上conda list
显示matplotlib 2.2.3
已安装。我以为我做错了事,因为找不到其他用户问这个问题,但是,我自己也未能解决。非常感谢您的帮助。
谢谢