Pyspider安装
pip install pyspider -i https://pypi.tuna.tsinghua.edu.cn/simple
如果出现这个问题。
在https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl这个地址下载对应的python版本,一定得对应,不然安装不下来。下载后在当前目录执行pip install D:\TSBrowserDownloads\pycurl-7.45.1-cp37-cp37m-win_amd64.whl 后 再安装pyspider即可
Pyspider启动
终端输入pyspider
出现 phantomjs not found, continue running without it 这个错误 ,下载phantomjs ,并将phantomjs.exe放到python.exe同级目录下
出现 timeout is not supported on your platform.
warnings.warn(“timeout is not supported on your platform.”, FutureWarning) 错误时
出现phantomjs exited:打开pyspider->webui->app.py 搜索async,用async_替换async
再次执行pyspider all
打开地址http://localhost:5000/
还有一个问题,当在终端输入pyspider all时,卡在result_worker starting…时,在本地写一个bat文件,用来启动。 文件内容:
start cmd /c pyspider all
start cmd /c pyspider all
start cmd /c pyspider all
或者修改wsgidav版本