pip install dryscrape 失败并出现“错误:[Errno 2] 没有这样的文件或目录:'src/webkit_server'"?
问题描述
我需要为 python 安装dryscrape,但出现错误,请问是什么问题?
I need to install dryscrape for python but I got error, what's the problem?
C:UsersparvijAnaconda3Scripts>pip install dryscrape
我知道了:
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:usersparvijanaconda3libsite-packages (from dryscrape)
Building wheels for collected packages: webkit-server
Running setup.py bdist_wheel for webkit-server ... error
Complete output from command c:usersparvijanaconda3python.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('
', '
'), __file__, 'exec'))" bdist_wheel -d C:UsersparvijAppDataLocalTemp mp71w59qv6pip-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:usersparvijanaconda3python.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('
', '
'), __file__, 'exec'))" install --record C:UsersparvijAppDataLocalTemppip-tyzalid7-recordinstall-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:usersparvijanaconda3python.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('
', '
'), __file__, 'exec'))" install --record C:UsersparvijAppDataLocalTemppip-tyzalid7-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersparvijAppDataLocalTemppip-build-o7nlv0dzwebkit-server
我的操作系统是 windows 8
my operating system is windows 8
我的python版本是3.5
my python version is 3.5
解决方案
从github下载webkit-server
Download webkit-server from github
git clone https://github.com/niklasb/webkit-server.git webkit-server
webkit-server/setup.py 的变化:
Change in webkit-server/setup.py :
shutil.copy('src/webkit_server', self.build_purelib)
shutil.copy('src/webkit_server', self.build_platlib)
到
shutil.copy('src/webkit_server.pro', self.build_purelib)
shutil.copy('src/webkit_server.pro', self.build_platlib)
然后
cd webkit-server
python setup.py install
你去.
相关文章