安裝完爬蟲框架pyspider出現的問題總結:
1、報錯圖片
Python-Command "python setup.py egg_info" failed with error code 10 in c:\users\liujun~1\appdata\local\temp\pip-install-sfbkdg\pycurl\

解決方法:
1、安裝:pip install wheel

2、下載對應的curl
python版本:python-2.7.13.msi
curl版本:pycurl-7.43.0.3-cp27-cp27m-win32.whl
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl
3、放到自己指定目錄,然后執行
pip install C:\install\python\pycurl-7.43.0.3-cp27-cp27m-win32.whl

4、按照pyspider
pip install pyspider

5、出現報錯
Could not find a version that satisfies the requirement u-msgpack-python>=1.6 (from pyspider) (from versions: )
No matching distribution found for u-msgpack-python>=1.6 (from pyspider)

6、先卸載,然后安裝
pip uninstall C:\install\python\pycurl-7.43.0.3-cp27-cp27m-win32.whl
pip install C:\install\python\pycurl-7.43.0.3-cp27-cp27m-win32.whl
7、pip install pyspider
8、安裝成功

9、啟動pyspider
命令:pyspider all
出現錯誤:
ValueError: Invalid configuration:
- Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.

解決方法:
把webdav.pv的209行:
地址:XXX\python\Lib\site-packages\pyspider\webui\webdav.py
'domaincontroller': NeedAuthController(app),
修改為:
'http_authenticator.domain_controller': NeedAuthController(app),
10、再次啟動pyspider all
出現錯誤:
from werkzeug.wsgi import DispatcherMiddleware
ImportError: cannot import name DispatcherMiddleware

解決方法:
目前知道原因:
1、沒有安裝werkzeug
2、werkzeug的版本為1.0.0,這個版本中沒有DispatcherMiddleware方法
解決辦法:
卸載werkzeug,重新安裝低版本的werkzeug
#卸載 python -m pip uninstall werkzeug #安裝指定版本 python -m pip install werkzeug==0.16.0
11、再次啟動pyspider all

12、訪問本地http://localhost:5000/
