简体   繁体   English

pip install dryscrape 失败并显示“错误:[Errno 2] 没有这样的文件或目录:'src/webkit_server'”?

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

I need to install dryscrape for python but I got error, what's the problem?我需要为python安装dryscrape但出现错误,有什么问题?

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

I got this:我得到了这个:

Collecting dryscrape
Collecting webkit-server>=1.0 (from dryscrape)
  Using cached webkit-server-1.0.tar.gz
Collecting xvfbwrapper (from dryscrape)
Requirement already satisfied (use --upgrade to upgrade): lxml in c:\users\parvij\anaconda3\lib\site-packages (from dryscrape)
Building wheels for collected packages: webkit-server
  Running setup.py bdist_wheel for webkit-server ... error
  Complete output from command c:\users\parvij\anaconda3\python.exe -u -c"import setuptools,tokenize;__file__='C:\\Users\\parvij\\AppData\\Local\\Temp\\pip-build-o7nlv0dz\\webkit-server\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\parvij\AppData\Local\Temp\tmp71w59qv6pip-wheel- --python-tag cp35:
  running bdist_wheel
  running build
  'make' is not recognized as an internal or external command,
  operable program or batch file.
  error: [Errno 2] No such file or directory: 'src/webkit_server'

  ----------------------------------------
  Failed building wheel for webkit-server
  Running setup.py clean for webkit-server
Failed to build webkit-server
Installing collected packages: webkit-server, xvfbwrapper, dryscrape
  Running setup.py install for webkit-server ... error
    Complete output from command c:\users\parvij\anaconda3\python.exe -u -c"import setuptools,tokenize;__file__='C:\\Users\\parvij\\AppData\\Local\\Temp\\pip-build-o7nlv0dz\\webkit-server\\setup.py';exec(compile(getattr(tokenize, 'open',open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\parvij\AppData\Local\Temp\pip-tyzalid7-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    'make' is not recognized as an internal or external command,
    operable program or batch file.
    error: [Errno 2] No such file or directory: 'src/webkit_server'

    ----------------------------------------
Command "c:\users\parvij\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\parvij\\AppData\\Local\\Temp\\pip-build-o7nlv0dz\\webkit-server\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\parvij\AppData\Local\Temp\pip-tyzalid7-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\parvij\AppData\Local\Temp\pip-build-o7nlv0dz\webkit-server\

my operating system is windows 8我的操作系统是 Windows 8

my python version is 3.5我的python版本是3.5

Download webkit-server from github从 github 下载 webkit-server

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

Change in webkit-server/setup.py : 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.你去吧。

Need to install http://www.qt.io .需要安装http://www.qt.io Also, The 5.6+ version of Qt removes the Qt WebKit module in favor of the new module Qt WebEngine.此外,Qt 5.6+ 版本删除了 Qt WebKit 模块,取而代之的是新模块 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.到目前为止,webkit-server 还没有被移植到 WebEngine(并且可能不会在不久的将来),所以 Qt <= 5.5 是一个要求。

From the doc , you have to installed also requirements .文档中,您还必须安装requirements You can do this as follow您可以按照以下方式执行此操作

pip install -r requirements.txt

After this retry to install dryscrape .在此之后重试安装dryscrape

需要安装qt4libqtwebkit-dev来编译webkit-server ,然后按照@Erwan Clügairtz的步骤操作

sudo apt install libqtwebkit-dev qt4

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Dryscrape/webkit_server 内存泄漏 - Dryscrape/webkit_server memory leak Pip无法安装Dryscrape - Pip cannot install Dryscrape pip install FileNotFoundError: [Errno 2] 没有这样的文件或目录: - pip install FileNotFoundError: [Errno 2] No such file or directory: pip install 给我这个错误“无法打开文件&#39;pip&#39;:[Errno 2]没有这样的文件或目录” - pip install gives me this error “can't open file 'pip': [Errno 2] No such file or directory” 如何安装 requirements.txt pip 错误-&gt;由于 OSError 无法安装软件包:[Errno 2] 没有这样的文件或目录 - How to install requirements.txt pip error ->Could not install packages due to an OSError: [Errno 2] No such file or directory pip安装彩色获取错误-FileNotFoundError:[Errno 2]没有这样的文件或目录:&#39;README.rst&#39; - pip install colored getting error - FileNotFoundError: [Errno 2] No such file or directory: 'README.rst' Python无法pip安装Dryscrape - Python unable to pip install Dryscrape OS X Mavericks上的pip install失败并出现错误:/ usr / local / bin / pip:没有这样的文件或目录 - pip install on OS X Mavericks fails with error: /usr/local/bin/pip: No such file or directory 如何在python上安装pip(错误:无此类文件或目录) - How to install pip on python (error : No such file or directory) pip 安装 pods 命令在 jupyter 中失败,并出现 FileNotFoundError:[Errno 2] 没有这样的文件或目录:'C:\\tmp\\sods.log' - pip install pods command failed in jupyter with FileNotFoundError: [Errno 2] No such file or directory: 'C:\\tmp\\sods.log'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM