python # ImportError: No module named m3u8

ImportError: No module named m3u8

无法用yum直接安装:

#yum search m3u8
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Warning: No matches found for: m3u8
No matches found

解决方法:

yum search pip
yum -y install python-pip.noarch
pip install --upgrade pip
pip install m3u8

References:

https://pypi.org/project/m3u8/

你可能感兴趣的:(python # ImportError: No module named m3u8)