pip install error

March 8, 2019 1.7k views
Python Ubuntu 16.04

I'm trying to install some modules using the following command:

pip install lxml watchdog txredisapi twistar bcrypt numpy colorlog twisted mysql-connector-python firebase-admin google-api-python-client

It executes and starts to show errors like " warning: no files found matching '' "
Finally, it all ends with the following error:

Cleaning up...
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1091, in prepare_files
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 811, in check_if_exists
    self.satisfied_by = pkg_resources.get_distribution(self.req)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 481, in get_distribution
    dist = get_provider(dist)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 357, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
IndexError: list index out of range

Storing debug log for failure in /root/.pip/pip.log

Is something wrong in there? I tried upgrading PIP and installing setuptools, but it still doesn't work.

1 Answer
jarland MOD March 8, 2019
Accepted Answer

Hey friend,

Try installing those one at a time and see if you can narrow down what is failing. I would suggest that one of those modules may be the culprit.


Have another answer? Share your knowledge.