Linux中pip安装python包失败原因是缺少python3-dev
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
这段报错,需要安装python头文件:
sudo apt-get updatesudo apt-get install build-essential python3-dev
再次执行pip install,成功。