已有183人关注
无法成功安装Crawley模块,请老师及高手帮忙!谢谢!
发表在Python图书答疑 2019-01-08 悬赏:20 学分 《Python从入门到项目实践》第21章 网络爬虫框架 338页-338页
是否精华
版块置顶:

C:\ >pip install crawley

Collecting crawley

  Using cached https://files.pythonhosted.org/packages/4c/02/5fc35151842c449300f0ddf53dab6ed906809b0300f7c31022dd51b4f2b7/crawley-0.2.4.tar.gz

Requirement already satisfied: lxml in c:\users\iamlu\appdata\roaming\python\python36\site-packages (from crawley) (4.2.5)

Requirement already satisfied: eventlet in c:\users\iamlu\appdata\local\programs\python\python36\lib\site-packages (from crawley) (0.24.1)

Requirement already satisfied: elixir in c:\users\iamlu\appdata\local\programs\python\python36\lib\site-packages (from crawley) (0.7.1)

Requirement already satisfied: pyquery in c:\users\iamlu\appdata\local\programs\python\python36\lib\site-packages (from crawley) (1.4.0)

Requirement already satisfied: dnspython>=1.15.0 in c:\users\iamlu\appdata\local\programs\python\python36\lib\site-packages (from eventlet->crawley) (1.16.0)

Requirement already satisfied: six>=1.10.0 in c:\users\iamlu\appdata\local\programs\python\python36\lib\site-packages (from eventlet->crawley) (1.11.0)

Requirement already satisfied: greenlet>=0.3 in c:\users\iamlu\appdata\local\programs\python\python36\lib\site-packages (from eventlet->crawley) (0.4.15)

Requirement already satisfied: monotonic>=1.4 in c:\users\iamlu\appdata\local\programs\python\python36\lib\site-packages (from eventlet->crawley) (1.5)

Requirement already satisfied: SQLAlchemy>=0.4.0 in c:\users\iamlu\appdata\local\programs\python\python36\lib\site-packages (from elixir->crawley) (1.2.15)

Requirement already satisfied: cssselect>0.7.9 in c:\users\iamlu\appdata\roaming\python\python36\site-packages (from pyquery->crawley) (1.0.3)

Building wheels for collected packages: crawley

  Running setup.py bdist_wheel for crawley ... error

  Complete output from command c:\users\iamlu\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\iamlu\\AppData\\Local\\Temp\\pip-install-11z_uq2z\\crawley\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\iamlu\AppData\Local\Temp\pip-wheel-ctyd07eu --python-tag cp36:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build\lib

  。。。。

  字符太多,此处为省略

  。。。。

    creating build\lib\crawley\persistance\documents

    copying crawley\persistance\documents\csv_doc.py -> build\lib\crawley\persistance\documents

    copying crawley\persistance\documents\json.py -> build\lib\crawley\persistance\documents

    copying crawley\persistance\documents\meta.py -> build\lib\crawley\persistance\documents

    copying crawley\persistance\documents\xml.py -> build\lib\crawley\persistance\documents

    copying crawley\persistance\documents\__init__.py -> build\lib\crawley\persistance\documents

    creating build\lib\crawley\utils\collections

    copying crawley\utils\collections\custom_dict.py -> build\lib\crawley\utils\collections

    copying crawley\utils\collections\ordered_dict.py -> build\lib\crawley\utils\collections

    copying crawley\utils\collections\__init__.py -> build\lib\crawley\utils\collections

    running egg_info

    writing crawley.egg-info\PKG-INFO

    writing dependency_links to crawley.egg-info\dependency_links.txt

    writing requirements to crawley.egg-info\requires.txt

    writing top-level names to crawley.egg-info\top_level.txt

    reading manifest file 'crawley.egg-info\SOURCES.txt'

    reading manifest template 'MANIFEST.in'

    writing manifest file 'crawley.egg-info\SOURCES.txt'

    error: Error: setup script specifies an absolute path:

 

        C:\Users\iamlu\AppData\Local\Temp\pip-install-11z_uq2z\crawley\crawley\conf\templates\config.tm

 

    setup() arguments must *always* be /-separated paths relative to the

    setup.py directory, *never* absolute paths.

 

 

    ----------------------------------------

Command "c:\users\iamlu\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\iamlu\\AppData\\Local\\Temp\\pip-install-11z_uq2z\\crawley\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\iamlu\AppData\Local\Temp\pip-record-yyjefzb0\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\iamlu\AppData\Local\Temp\pip-install-11z_uq2z\crawley\

 

 


分享到:
精彩评论 2
mrkj_0257
学分:1507 LV9
2019-01-09
沙发
/**/
夜琉璃
学分:55 LV3
2019-01-12
板凳

你可以尝试使用国内的pypi源进行安装库

首页上一页 1 下一页尾页 2 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照