search

Home  >  Q&A  >  body text

aiohttp is installed in python3, but the import still fails when entering python3.

The virtual machine environment is Ubuntu - 64-bit
pip is installed under python3. When using pip to install aiohttp, it shows that it has been installed in python3, but then entering python to import the aiohttp module still fails. What should I do?

淡淡烟草味淡淡烟草味2713 days ago1017

reply all(2)I'll reply

  • 女神的闺蜜爱上我

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

    You are using pip3.5. Hey...try it

    python3.6 -m pip install aiohttp

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-06-28 09:24:08

    Try it

    pip3 install aiohttp
    

    Because it is common for Python2 and Python3 to coexist on Ubuntu, pip3 is installed to python 3, and pip is installed to Python 2 environment, which are different environments.

    reply
    0
  • Cancelreply