在我学习机器学习开始的时候,需要安装numpy这个python库,但是当我在Linux下pip install numpy时,
报错:error code 1 in /tmp/pip_build_root/numpy
搜索了好多文章,最后在stackoveflow找到解决方案:竟然是Linux里缺少gcc,
It seems like your system does not have gcc
.
Install build tools using following command:
apt-get install build-essential python-dev