pip install spams报错如下:
Failed to build spams
ERROR: Could not build wheels for spams, which is required to install pyproject.toml-based projects
解决:
来到pip官网,查看spams包是如何安装的。spams · PyPI
![](https://i-blog.csdnimg.cn/blog_migrate/ab46dec7280914501fbe70977a92adbb.png)
# 根据如上指示
sudo apt-get -y install libblas-dev liblapack-dev gfortran
pip install mkl
pip install spams
![](https://i-blog.csdnimg.cn/blog_migrate/4705982997fe28773721b740803db143.png)
😃问题解决!