Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aiohttp module - import error

Installed aiohttp,

pip3 install aiohttp

as mentioned here


With python3.6,

I see below error:

import aiohttp
ModuleNotFoundError: No module named 'aiohttp'

How to resolve this error?

like image 963
overexchange Avatar asked Jul 14 '17 01:07

overexchange


1 Answers

This is because your pip3 is not in the python3.6 PYTHONPATH. I always think the best way to install Python packages using pip is with to run it as a script using the -m option.

python3.6 -m pip install aiohttp
like image 93
styvane Avatar answered Oct 12 '22 21:10

styvane