上面这个网站有时候会打不开,可以去Github,一般99%都OK了。
#Note for Windows users: at the moment you can run pip install spams-bin
# (provided by https://github.com/samuelstjean/spams-python).
#Installation from PyPI:
#The standard installation uses the BLAS and LAPACK libraries used by Numpy:
pip install spams
#Installation from sources
#Make sure you have install libblas & liblapack (see above)
git clone https://github.com/getspams/spams-python
cd spams-python
pip install -e .
或者指定从PyPI安装
pip install --index-url https://test.pypi.org/simple/ spams
然后规则之外总有例外
# https://pypi.org
pip install --upgrade setuptools pip
#各类疑难杂症
https://packaging.python.org/en/latest/tutorials/installing-packages/
Why you shouldn't invoke setup.py directly
小结:未完待续,建议装python3.8, 之后的版本经常找不到已编译的binary包,或者各种工具之间的兼容性问题。