pip install dryscrape fails with “error: [Errno 2] No such file or directory: 'src/webkit_server'”?

前端 未结 4 440
遇见更好的自我
遇见更好的自我 2021-02-05 09:27

I need to install dryscrape for python but I got error, what\'s the problem?

C:\\Users\\parvij\\Anaconda3\\Scripts>pip install dryscrape

I g

相关标签:
4条回答
  • 2021-02-05 10:03

    Need to install http://www.qt.io. Also, The 5.6+ version of Qt removes the Qt WebKit module in favor of the new module Qt WebEngine. So far, webkit-server has not been ported to WebEngine (and likely won't be in the near future), so Qt <= 5.5 is a requirement.

    0 讨论(0)
  • 2021-02-05 10:13

    Download webkit-server from github

    git clone https://github.com/niklasb/webkit-server.git webkit-server
    

    Change in webkit-server/setup.py :

    shutil.copy('src/webkit_server', self.build_purelib)
    shutil.copy('src/webkit_server', self.build_platlib)
    

    to

    shutil.copy('src/webkit_server.pro', self.build_purelib)
    shutil.copy('src/webkit_server.pro', self.build_platlib)
    

    then

    cd webkit-server
    python setup.py install
    

    There you go.

    0 讨论(0)
  • 2021-02-05 10:16

    From the doc, you have to installed also requirements. You can do this as follow

    pip install -r requirements.txt
    

    After this retry to install dryscrape.

    0 讨论(0)
  • 2021-02-05 10:27

    Need do install qt4 and libqtwebkit-dev for compile webkit-server, then follow the steps of @Erwan Clügairtz

    sudo apt install libqtwebkit-dev qt4

    0 讨论(0)
提交回复
热议问题