Pyspider pkg_resources.DistributionNotFound: wsgidav

the pyspider installation prompt was successful and there was a pkg_resources.DistributionNotFound: wsgidav problem at run time.

[root@localhost ~]-sharp pip install pyspider
Collecting pyspider
  Downloading https://files.pythonhosted.org/packages/df/c3/a045f1814374ef983216f3a5c0023febe0ae8203d40016d14919f6f45411/pyspider-0.3.9.tar.gz (109kB)
    100% || 112kB 80kB/s 
/usr/lib64/python2.7/site-packages/distribute-0.6.13-py2.7.egg/setuptools/command/install_scripts.py:3: UserWarning: Module email was already imported from /usr/lib64/python2.7/email/__init__.pyc, but /usr/lib/python2.7/site-packages is being added to sys.path
  from pkg_resources import Distribution, PathMetadata, ensure_directory
Requirement already satisfied: Flask>=0.10 in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: Jinja2>=2.7 in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: chardet>=2.2 in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: cssselect>=0.9 in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: lxml in /usr/lib64/python2.7/site-packages (from pyspider)
Requirement already satisfied: pycurl in /usr/lib64/python2.7/site-packages (from pyspider)
Requirement already satisfied: pyquery in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: requests>=2.2 in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: tornado>=3.2 in /usr/lib64/python2.7/site-packages (from pyspider)
Requirement already satisfied: Flask-Login>=0.2.11 in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: u-msgpack-python>=1.6 in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: click>=3.3 in /usr/lib/python2.7/site-packages/click-6.7-py2.7.egg (from pyspider)
Requirement already satisfied: six>=1.5.0 in /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg (from pyspider)
Requirement already satisfied: tblib>=1.3.0 in /usr/lib/python2.7/site-packages (from pyspider)
Requirement already satisfied: wsgidav in /usr/lib64/python2.7/site-packages (from pyspider)
Requirement already satisfied: Werkzeug>=0.7 in /usr/lib/python2.7/site-packages (from Flask>=0.10->pyspider)
Requirement already satisfied: itsdangerous>=0.21 in /usr/lib/python2.7/site-packages (from Flask>=0.10->pyspider)
Requirement already satisfied: MarkupSafe in /usr/lib64/python2.7/site-packages (from Jinja2>=2.7->pyspider)
Requirement already satisfied: backports.ssl_match_hostname in /usr/lib/python2.7/site-packages (from tornado>=3.2->pyspider)
Requirement already satisfied: defusedxml in /usr/lib/python2.7/site-packages (from wsgidav->pyspider)
Installing collected packages: pyspider
  Running setup.py install for pyspider ... done
Successfully installed pyspider-0.3.9
You are using pip version 9.0.3, however version 10.0.0 is available.
You should consider upgrading via the "pip install --upgrade pip" command.

there is a problem with running:

[root@localhost ~]-sharp pyspider
Traceback (most recent call last):
  File "/usr/bin/pyspider", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python2.7/site-packages/distribute-0.6.13-py2.7.egg/pkg_resources.py", line 2671, in <module>
    working_set.require(__requires__)
  File "/usr/lib64/python2.7/site-packages/distribute-0.6.13-py2.7.egg/pkg_resources.py", line 654, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python2.7/site-packages/distribute-0.6.13-py2.7.egg/pkg_resources.py", line 552, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: wsgidav

it is no problem to find that wsgidav has, import wsgidav installed. According to https://blog.csdn.net/patrick.

[root@localhost ~]-sharp pip install -U setuptools
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl (569kB)
    100% || 573kB 15kB/s 
Installing collected packages: setuptools
  Found existing installation: setuptools 32.3.0
    Uninstalling setuptools-32.3.0:
      Successfully uninstalled setuptools-32.3.0
Successfully installed setuptools-39.0.1

run pyspider or pkg_resources.DistributionNotFound: wsgidav again

Mar.03,2021
Menu