windows 10 下pyspider安装与试错

在Windows 10上安装pyspider时,遇到命令行执行`python`指令失效、`pyspider all`报错等问题。解决方法包括:调整环境变量以使`python`可用,使用`pip`安装pyspider,用PyCharm编辑pyspider源码替换`async`关键字,卸载并安装低版本的wsgidav和werkzeug。最终成功运行`pyspider all`并在浏览器中访问localhost:5000启动pyspider界面。
摘要由CSDN通过智能技术生成

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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值