windows 10 下pyspider安装与试错
1.如果cmd中无法通过 python指令,则在环境变量 ->path 中添加 ;C:\Users\asus\AppData\Local\Programs\Python\Python38\;C:\Python27\Scripts;
2.安装pyspider 在cmd中输入 pip install pyspider
3.在cmd中执行pyspider all 遇到问题:SyntaxError: invalid syntax,在PyCharm 中打开【file->open】 pyspider(我电脑中的Pyspider地址如下C:\Users\asus\anaconda3\Lib\site-packages\pyspider ),接着在pycharm中打开如下目录:edit->find->find in path…(快捷键Ctrl+shift+f),在In Project 里搜索 async ,替换成shark(CurlAsyncHTTPClient SimpleAsyncHTTPClient async_fetch向这样的不用替换,只需替换掉单个的async。这些要替换调度async来自三个.py文件:run.py ,app.py ,tornado_fetcher.py)
4.在cmd中执行pyspider all 遇到问题:
ValueError: Invalid configuration:
- Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead
解决方法&#x