Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't pip find packages listed in `pip search` results?

Tags:

python

pip

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?

like image 594
goodside Avatar asked Oct 19 '12 22:10

goodside


People also ask

How do I fix pip module not found?

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.

How do I get a list of modules in pip?

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 .

Where does pip fetch packages from?

By default, pip installs packages located in the Python Package Index (PyPI), but can also install from other indexes.


1 Answers

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
like image 155
igordc Avatar answered Nov 15 '22 23:11

igordc