Home  >  Q&A  >  body text

python - ModuleNotFoundError: No module named 'aiohttp'

The module has been installed obviously, but when running the program, it still prompts that the module python is not available. What is the problem?

phpcn_u1582phpcn_u15822639 days ago2225

reply all(2)I'll reply

  • 扔个三星炸死你

    扔个三星炸死你2017-07-05 10:36:55

    Obviously it’s a problem with the system environment. Try typing import aiohttp in the python command line. If it doesn’t work, it means that this pip is not the pip matching your python version. Check whether the environment variables are set correctly, the directory of python.exe, and the directory of Scripts/ in the same directory are correct.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-07-05 10:36:55

    Add the Python path C:UsersAdministratorAppDataLocalProgramsPythonPython35 to the environment variable. Previously, C:UsersAdministratorAppDataLocalProgramsPythonPython35Scripts was added to the environment variable. The running result is as follows:

    reply
    0
  • Cancelreply