账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    win7 python安装scrapy 应该是openssl出现问题
    62
    0

    安装完scrapy 和 其他库后出现的问题
    我觉得可能是openssl的问题 求大佬解答

    问题描述

    C:\Users\Administrator>scrapy
    Traceback (most recent call last):
      File "d:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
        "__main__", mod_spec)
      File "d:\anaconda3\lib\runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "D:\Anaconda3\Scripts\scrapy.exe\__main__.py", line 5, in <module>
      File "d:\anaconda3\lib\site-packages\scrapy\cmdline.py", line 9, in <module>
        from scrapy.crawler import CrawlerProcess
      File "d:\anaconda3\lib\site-packages\scrapy\crawler.py", line 7, in <module>
        from twisted.internet import reactor, defer
      File "d:\anaconda3\lib\site-packages\twisted\internet\reactor.py", line 38, in
     <module>
        from twisted.internet import default
      File "d:\anaconda3\lib\site-packages\twisted\internet\default.py", line 56, in
     <module>
        install = _getInstallFunction(platform)
      File "d:\anaconda3\lib\site-packages\twisted\internet\default.py", line 50, in
     _getInstallFunction
        from twisted.internet.selectreactor import install
      File "d:\anaconda3\lib\site-packages\twisted\internet\selectreactor.py", line
    18, in <module>
        from twisted.internet import posixbase
      File "d:\anaconda3\lib\site-packages\twisted\internet\posixbase.py", line 18,
    in <module>
        from twisted.internet import error, udp, tcp
      File "d:\anaconda3\lib\site-packages\twisted\internet\tcp.py", line 31, in <mo
    dule>
        from twisted.internet._newtls import (
      File "d:\anaconda3\lib\site-packages\twisted\internet\_newtls.py", line 21, in
     <module>
        from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
      File "d:\anaconda3\lib\site-packages\twisted\protocols\tls.py", line 41, in <m
    odule>
        from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
      File "d:\anaconda3\lib\site-packages\OpenSSL\__init__.py", line 8, in <module>
    
        from OpenSSL import crypto, SSL
      File "d:\anaconda3\lib\site-packages\OpenSSL\crypto.py", line 16, in <module>
        from OpenSSL._util import (
      File "d:\anaconda3\lib\site-packages\OpenSSL\_util.py", line 6, in <module>
        from cryptography.hazmat.bindings.openssl.binding import Binding
      File "d:\anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\bind
    ing.py", line 141, in <module>
        Binding.init_static_locks()
      File "d:\anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\bind
    ing.py", line 122, in init_static_locks
        cls._ensure_ffi_initialized()
      File "d:\anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\bind
    ing.py", line 109, in _ensure_ffi_initialized
        cls.lib = build_conditional_library(lib, CONDITIONAL_NAMES)
      File "d:\anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\bind
    ing.py", line 69, in build_conditional_library
        if not getattr(lib, condition):
    AttributeError: cffi library '_openssl' has no function, constant or global vari
    able named 'Cryptography_HAS_CMS'

    我的安装列表

    ---------------------------------- ---------
    aiodns                             1.1.1
    aiohttp                            3.3.2
    alabaster                          0.7.10
    altgraph                           0.15
    anaconda-client                    1.6.14
    anaconda-navigator                 1.8.7
    anaconda-project                   0.8.2
    asn1crypto                         0.24.0
    astroid                            1.6.1
    astropy                            2.0.3
    async-timeout                      3.0.0
    attrs                              17.4.0
    Automat                            0.7.0
    Babel                              2.5.3
    backports.shutil-get-terminal-size 1.0.0
    beautifulsoup4                     4.6.0
    bitarray                           0.8.1
    bkcharts                           0.2
    blaze                              0.11.3
    bleach                             2.1.2
    bokeh                              0.12.13
    boto                               2.48.0
    Bottleneck                         1.2.1
    cchardet                           2.1.1
    certifi                            2016.2.28
    cffi                               1.11.5
    chardet                            3.0.4
    click                              6.7
    cloudpickle                        0.5.2
    clyent                             1.2.2
    colorama                           0.3.9
    comtypes                           1.1.4
    conda                              4.3.30
    conda-build                        3.4.1
    conda-verify                       2.0.0
    constantly                         15.1.0
    contextlib2                        0.5.5
    cryptography                       2.3
    cssselect                          1.0.3
    cycler                             0.10.0
    Cython                             0.27.3
    cytoolz                            0.9.0
    dask                               0.16.1
    datashape                          0.5.4
    decorator                          4.2.1
    defusedxml                         0.5.0
    distributed                        1.20.2
    docutils                           0.14
    entrypoints                        0.2.3
    et-xmlfile                         1.0.1
    fastcache                          1.0.2
    filelock                           2.0.13
    Flask                              0.12.2
    Flask-Cors                         3.0.3
    Flask-Login                        0.4.1
    future                             0.16.0
    gevent                             1.2.2
    glob2                              0.6
    greenlet                           0.4.12
    h5py                               2.7.1
    heapdict                           1.0.0
    html5lib                           1.0.1
    hyperlink                          18.0.0
    idna                               2.6
    idna-ssl                           1.0.1
    imageio                            2.2.0
    imagesize                          0.7.1
    incremental                        17.5.0
    ipykernel                          4.8.2
    ipython                            6.2.1
    ipython-genutils                   0.2.0
    ipywidgets                         7.1.1
    isort                              4.2.15
    itsdangerous                       0.24
    jdcal                              1.3
    jedi                               0.11.1
    Jinja2                             2.10
    jsmin                              2.2.2
    jsonschema                         2.6.0
    jupyter                            1.0.0
    jupyter-client                     5.2.2
    jupyter-console                    5.2.0
    jupyter-core                       4.4.0
    jupyterlab                         0.31.4
    jupyterlab-launcher                0.10.2
    lazy-object-proxy                  1.3.1
    llvmlite                           0.21.0
    locket                             0.2.0
    lxml                               4.2.4
    macholib                           1.9
    MarkupSafe                         1.0
    matplotlib                         2.1.2
    mccabe                             0.6.1
    menuinst                           1.4.11
    mistune                            0.8.3
    mpmath                             1.0.0
    msgpack-python                     0.5.1
    multidict                          4.3.1
    multipledispatch                   0.4.9
    MyQR                               2.3.1
    navigator-updater                  0.1.0
    nbconvert                          5.3.1
    nbformat                           4.4.0
    networkx                           2.1
    nltk                               3.2.5
    nose                               1.3.7
    notebook                           5.4.0
    numba                              0.36.2
    numexpr                            2.6.4
    numpy                              1.14.0
    numpydoc                           0.7.0
    odo                                0.5.1
    olefile                            0.45.1
    opencv-python                      3.4.2.16
    openpyxl                           2.4.10
    packaging                          16.8
    pandas                             0.22.0
    pandocfilters                      1.4.2
    parsel                             1.4.0
    parso                              0.1.1
    partd                              0.3.8
    path.py                            10.5
    pathlib2                           2.3.0
    patsy                              0.5.0
    pefile                             2017.11.5
    pep8                               1.7.1
    pickleshare                        0.7.4
    PIL                                2.0+dummy
    Pillow                             5.0.0
    pip                                18.0
    pkginfo                            1.4.1
    pluggy                             0.6.0
    ply                                3.10
    prompt-toolkit                     1.0.15
    psutil                             5.4.3
    py                                 1.5.2
    pyasn1                             0.4.3
    pyasn1-modules                     0.2.1
    pycares                            2.3.0
    pycodestyle                        2.3.1
    pycosat                            0.6.3
    pycparser                          2.18
    pycrypto                           2.6.1
    pycurl                             7.43.0
    PyDispatcher                       2.0.5
    pyflakes                           1.6.0
    Pygments                           2.2.0
    PyHamcrest                         1.9.0
    PyInstaller                        3.3.1
    pylint                             1.8.2
    pymongo                            3.7.1
    pyodbc                             4.0.22
    pyOpenSSL                          18.0.0
    pyparsing                          2.2.0
    pypiwin32                          223
    PyQt5                              5.11.2
    PyQt5-sip                          4.19.12
    pyqt5-tools                        5.9.0.1.2
    pyquery                            1.4.0
    PySocks                            1.6.7
    pyspider                           0.3.10
    pytest                             3.3.2
    pytest-runner                      4.2
    python-dateutil                    2.6.1
    pytz                               2017.3
    PyWavelets                         0.5.2
    pywin32                            223
    pywinpty                           0.5
    PyYAML                             3.12
    pyzmq                              16.0.3
    QtAwesome                          0.4.4
    qtconsole                          4.3.1
    QtPy                               1.4.2
    queuelib                           1.5.0
    requests                           2.14.2
    rope                               0.10.7
    ruamel-yaml                        0.15.35
    scikit-image                       0.13.1
    scikit-learn                       0.19.1
    scipy                              1.0.0
    Scrapy                             1.5.1
    seaborn                            0.8.1
    selenium                           3.12.0
    Send2Trash                         1.4.2
    service-identity                   17.0.0
    setuptools                         40.0.0
    simplegeneric                      0.8.1
    singledispatch                     3.4.0.3
    six                                1.11.0
    snowballstemmer                    1.2.1
    sortedcollections                  0.5.3
    sortedcontainers                   1.5.9
    Sphinx                             1.6.6
    sphinxcontrib-websupport           1.0.1
    spyder                             3.2.6
    SQLAlchemy                         1.2.1
    statsmodels                        0.8.0
    sympy                              1.1.1
    tables                             3.4.2
    tblib                              1.3.2
    terminado                          0.8.1
    tesserocr                          2.2.2
    testpath                           0.3.1
    toolz                              0.9.0
    tornado                            4.5.3
    traitlets                          4.3.2
    Twisted                            18.7.0
    typing                             3.6.2
    u-msgpack-python                   2.5.0
    unicodecsv                         0.14.1
    urllib3                            1.22
    virtualenv                         16.0.0
    w3lib                              1.19.0
    wcwidth                            0.1.7
    webencodings                       0.5.1
    Werkzeug                           0.14.1
    wheel                              0.30.0
    widgetsnbextension                 3.1.0
    win-inet-pton                      1.0.1
    win-unicode-console                0.5
    wincertstore                       0.2
    wrapt                              1.10.11
    WsgiDAV                            2.4.1
    xlrd                               1.1.0
    XlsxWriter                         1.0.2
    xlwings                            0.11.5
    xlwt                               1.3.0
    yarl                               1.2.6
    zict                               0.1.3
    zope.interface                     4.5.0
    2
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    网站公告
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部