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

前端 未结 4 438
遇见更好的自我
遇见更好的自我 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: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.

提交回复
热议问题