Como resolver ImportError: Nenhum módulo chamado certifi

0

Estou usando o Debian Testing e estou tentando instalar um par de módulos, um deles é o cliente discog. No entanto, eu continuo a acertar essa coisa certifi que não tenho nenhuma idéia.

De acordo com a minha instalação em python, o módulo certifi está no sistema . Veja as linhas abaixo.

python

Python 2.7.15 (default, May  1 2018, 05:55:50) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import certifi
>>> certifi.where()
'/etc/ssl/certs/ca-certificates.crt'

Aqui está o erro.

pip install discogs-client

File "/usr/local/bin/pip", line 7, in <module>
    from pip._internal import main
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/__init__.py", line 42, in <module>
    from pip._internal import cmdoptions
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cmdoptions.py", line 16, in <module>
    from pip._internal.index import (
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/index.py", line 15, in <module>
    from pip._vendor import html5lib, requests, six
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py", line 99, in <module>
    from . import utils
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/utils.py", line 24, in <module>
    from . import certs
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/certs.py", line 15, in <module>
    from pip._vendor.certifi import where
ImportError: No module named certifi

Aqui está o certificado de instalação do pip

pip install certifi
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 7, in <module>
    from pip._internal import main
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/__init__.py", line 42, in <module>
    from pip._internal import cmdoptions
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/cmdoptions.py", line 16, in <module>
    from pip._internal.index import (
  File "/usr/local/lib/python2.7/dist-packages/pip/_internal/index.py", line 15, in <module>
    from pip._vendor import html5lib, requests, six
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py", line 99, in <module>
    from . import utils
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/utils.py", line 24, in <module>
    from . import certs
  File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/certs.py", line 15, in <module>
    from pip._vendor.certifi import where
ImportError: No module named certifi
    
por yarun can 18.06.2018 / 01:15

0 respostas