(GWAVA) wangshx@wangshx-KVM:~/GWAVA_v1.0/src$ python gwava_paper.py
Traceback (most recent call last):
File "gwava_paper.py", line 19, in <module>
from gwava import *
File "/home/wangshx/GWAVA_v1.0/src/gwava.py", line 21, in <module>
import pylab as pl
ImportError: No module named pylab
如何安装pylab
模块,我搜索它,发现它是matplotlib
的一部分,但我不知道应该安装matplotlib
的哪个版本。我尝试安装最新的版本,它提醒我更新许多模块版本。但我需要控制模块的版本。在
当我运行别人编写的python脚本时,我通过使用Anaconda
创建一个新环境来控制模块版本。在
这是脚本文档。在
The software requires the following python libraries (and their
associated dependencies) to be installed. The version numbers used
are identified, other versions may also work, but results may be
slightly different.
- numpy (1.7.0)
- scipy (0.11.0)
- pandas (0.12.0)
- scikit-learn (0.14.1)
- pybedtools (0.6.4)
- tabix (0.2.5)
我在README
中安装了所有模块。在
有什么帮助吗?在
virtualenv是避免Python库版本控制问题的常用方法。在
根据文件:
我使用
conda search matplotlib
来查找matplotlib
的所有版本。在然后选择一个似乎支持
numpy17
的版本(如1.3.0)。它在安装matplotlib
的1.3.0版本之后就可以工作了!在相关问题 更多 >
编程相关推荐