aiohttp 模块 - 导入错误
aiohttp module - import error
已安装 aiohttp
、
pip3 install aiohttp
如前所述here
与python3.6,
我看到以下错误:
import aiohttp
ModuleNotFoundError: No module named 'aiohttp'
如何解决这个错误?
这是因为您的 pip3
不在 python3.6 PYTHONPATH 中。我一直认为使用 pip
安装 Python 软件包的最佳方法是 运行 使用 -m
选项将其作为脚本。
python3.6 -m pip install aiohttp
已安装 aiohttp
、
pip3 install aiohttp
如前所述here
与python3.6,
我看到以下错误:
import aiohttp
ModuleNotFoundError: No module named 'aiohttp'
如何解决这个错误?
这是因为您的 pip3
不在 python3.6 PYTHONPATH 中。我一直认为使用 pip
安装 Python 软件包的最佳方法是 运行 使用 -m
选项将其作为脚本。
python3.6 -m pip install aiohttp