Is there a way to list the PyPi package names which correspond to modules being imported in a script?
For instance to import the module scapy3k
(this is its name) I need to use
import scapy.all
but the actual package to install is scapy-python3
. The latter is what I am looking to extract from what I will find in the import
statement (I do not care about its name - scapy3k
in that case).
There are other examples (which escape me right now) of packages which have a pip install
name completely different from what is being used in the import
afterwards.