尝试直接pip install python3-dev会失败,可以执行以下两条命令: sudo apt-get install aptitude sudo aptitude install python3-dev