Heim  >  Fragen und Antworten  >  Hauptteil

aiohttp ist in Python3 installiert, aber der Import schlägt bei der Eingabe von Python3 immer noch fehl.

Die virtuelle Maschinenumgebung ist Ubuntu – 64-Bit
pip wird unter Python3 installiert. Wenn Sie pip zur Installation von aiohttp verwenden, wird angezeigt, dass es in Python3 installiert wurde, aber das Importieren des aiohttp-Moduls in Python schlägt immer noch fehl ?

淡淡烟草味淡淡烟草味2650 Tage vor964

Antworte allen(2)Ich werde antworten

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-28 09:24:08

    你用的是pip3.5哎喂……试试

    python3.6 -m pip install aiohttp

    Antwort
    0
  • phpcn_u1582

    phpcn_u15822017-06-28 09:24:08

    試試

    pip3 install aiohttp
    

    因為Ubuntu上很常見Python2和Python3共存,pip3安裝到python 3,pip安裝到Python 2環境的,不一樣的環境。

    Antwort
    0
  • StornierenAntwort