k*******3 发帖数: 1909 | 1 用conda install先安装了pyvcf,自定义了路径
(base) MacBook-Pro-2:python3.6 haozheng$ conda install -c bioconda -p /
anaconda3/lib/python3.7/site-
packages pyvcf
然后在jupyter中运行
import vcf 报错
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
in ()
8 #import sys
9 #sys.path.insert(0, '/anaconda3/lib/python2.7/site-packages')
---> 10 import vcf
/anaconda3/lib/python2.7/site-packages/vcf/__init__.py in ()
7
8
----> 9 from vcf.parser import Reader, Writer
10 from vcf.parser import VCFReader, VCFWriter
11 from vcf.filters import Base as Filter
/anaconda3/lib/python2.7/site-packages/vcf/parser.py in ()
23 cparse = None
24
---> 25 from model import _Call, _Record, make_calldata_tuple
26 from model import _Substitution, _Breakend, _SingleBreakend, _SV
27
ModuleNotFoundError: No module named 'model'
请问怎么解决这个No module named 'model'问题,谢谢 | c******g 发帖数: 4889 | 2 问了这么多天没人理?
你这个pyvcf装给python3.6,但jupyter notebook是运行的python2.7 |
|