Aiohttp module - import error
Installed aiohttp
,
pip3 install aiohttp
as mentioned here
With python3.6,
Below I see the error:
import aiohttp
ModuleNotFoundError: No module named 'aiohttp'
How do I resolve this error?
+3
overexchange
source
to share
1 answer
This is because yours is pip3
not in python3.6 PYTHONPATH. I always think that the best way to install Python packages using pip
is to run it as a script using a parameter -m
.
python3.6 -m pip install aiohttp
+3
styvane
source
to share