windows環境安裝phantomjs和pyspider遇到的問題


1. 安裝phantomjs

下載地址:http://phantomjs.org/download.html

解壓后將phantomjs.exe文件放到python根目錄

 

2.安裝pyspider

pip install pyspider

運行:pyspider 或 pyspider all

提示報錯:RuntimeError: No supported color terminal library

我的tornado是4.5版本,降級到4.4.3后解決

python -m pip install tornado==4.4.3

 

運行:pyspider 或 pyspider all

提示報錯:

ValueError: Invalid configuration:
- Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.

解決上面報錯方法一:

  降級wsgidav到2.4.1版本

  python -m pip install wsgidav==2.4.1

解決上面報錯方法二:

  打開文件pyspider/webui/webdav.py

  注釋209行  # 'domaincontroller': NeedAuthController(app), 

  改為: 'http_authenticator': {'HTTPAuthenticator': NeedAuthController(app)}, 

 

運行:pyspider 或 pyspider all

在瀏覽器輸入localhost:5000

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM