报错信息
aiohttp/_websocket.c:6:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4pzq5z2m/aiohttp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-p7pod210-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-4pzq5z2m/aiohttp/
解决方法
sudo apt-get install python3-dev
sudo apt-get install libevent-dev
sudo yum install python3-devel
sudo yum install libevent-devel
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)