我使用带有pyhon 2.7的anaconda,我想打开pcap文件并提取一些功能 这里是代码
from steelscript.wireshark.core.pcap import PcapFile
pcap = PcapFile('sample.pcap')
pcap.info()
错误:
WindowsError Traceback (most recent call last)
<ipython-input-6-2022afd405ae> in <module>()
2
3 pcap = PcapFile('sample.pcap')
----> 4 pcap.info()
C:\Anaconda2\lib\site-packages\steelscript\wireshark\core\pcap.pyc in info(self)
44 cmd = ['capinfos', '-A', '-m', '-T', self.filename]
45 logger.info('subprocess: %s' % ' '.join(cmd))
---> 46 capinfos = subprocess.check_output(cmd)
47 hdrs, vals = (capinfos.split('\n')[:2])
48 self._info = dict(zip(hdrs.split(','), vals.split(',')))
C:\Anaconda2\lib\subprocess.pyc in check_output(*popenargs, **kwargs)
564 if 'stdout' in kwargs:
565 raise ValueError('stdout argument not allowed, it will be overridden.')
--> 566 process = Popen(stdout=PIPE, *popenargs, **kwargs)
567 output, unused_err = process.communicate()
568 retcode = process.poll()
C:\Anaconda2\lib\subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
708 p2cread, p2cwrite,
709 c2pread, c2pwrite,
--> 710 errread, errwrite)
711 except Exception:
712 # Preserve original exception in case os.close raises.
C:\Anaconda2\lib\subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
956 env,
957 cwd,
-- > 958 startupinfo)
959 except pywintypes.error, e:
960 # Translate pywintypes.error to WindowsError, which is
我搜索网页并找到编辑subprocess.py但我无法打开它并编辑代码。当我尝试打开它并向我显示消息时,您是否希望在网上搜索打开它的程序&#34;,Windows无法识别它。 2-我在脚本文件夹中成功安装dpkt模块,但是当我导入模块显示错误时pandas:没有这样的模块 非常感谢