First it's there:
$ pip search pylibpcap
pylibpcap - pylibpcap is a python module for the libpcap packet capture library.
Then it's not:
$ pip install pylibpcap
Downloading/unpacking pylibpcap
Could not find any downloads that satisfy the requirement pylibpcap
No distributions at all found for pylibpcap
Storing complete log in /home/u0/riley/.pip/pip.log
What gives? I realize there are other ways I can install this package, but why is pip doing this?
The Python "ModuleNotFoundError: No module named 'pip'" occurs when pip is not installed in our Python environment. To solve the error, install the module by running the python -m ensurepip --upgrade command on Linux or MacOS or py -m ensurepip --upgrade on Windows.
There are three ways to get the list of all the libraries or packages or modules installed in python using pip list command, pip freeze command and help function . This will list all the modules installed in the system .
By default, pip installs packages located in the Python Package Index (PyPI), but can also install from other indexes.
This answer was meant to be a comment to J.F. Sebastian answer, as it builds on top of it, but it was difficult to copy and paste the content.
For folks who run at this problem as well and want a quick fix:
=> first, install libpcap
=> then:
sudo pip2 install http://ncu.dl.sourceforge.net/project/pylibpcap/pylibpcap/0.6.4/pylibpcap-0.6.4.tar.gz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With