Why am I getting ModuleNotFoundError: No module named 'dpkt'?

3.3k Views Asked by At

When I run

import dpkt

It gives

ModuleNotFoundError: No module named 'dpkt'

But I already installed dpkt. install dpkt cmd

Does anyone know how I can fix this? I am using window10, python3.

1

There are 1 best solutions below

0
most.of.a.shark On

I had the same issue today. I found out that when I installing the dpkt module, it was getting installed onto an environment different than the one I was using in pyCharm.

I found the answer to this post very helpful to explain my issue: https://stackoverflow.com/a/52608375/2411380

I fixed my issue by using the terminal inside pyCharm to install dpkt, then it worked.

I also found a suggestion to use all packages installed in conda inside pyCharm: https://stackoverflow.com/a/49097897/2411380