Python AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

后端 未结 20 1648
無奈伤痛
無奈伤痛 2020-11-29 02:06

A Python script of mine is failing with:

Traceback (most recent call last):
  File \"./inspect_sheet.py\", line 21, in 
    main()
  File \"./i         


        
20条回答
  •  臣服心动
    2020-11-29 02:59

    I had the same issue and as pip wasn't working anymore I had to do his job manually:

    wget https://files.pythonhosted.org/packages/40/d0/8efd61531f338a89b4efa48fcf1972d870d2b67a7aea9dcf70783c8464dc/pyOpenSSL-19.0.0.tar.gz
    tar -xzvf pyOpenSSL-19.0.0.tar.gz
    cd pyOpenSSL-19.0.0
    sudo python setup.py install
    

    After that everything worked as expected.

提交回复
热议问题