因为要使用Word2Vec所以首先需要安装gensim
但是,pip gensim需要有scipy支持,直接pip install scipy出现以下错误
numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found. Note: Accelerate is no longer supported.
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
See site.cfg.example in the Scipy source directory and
https://docs.scipy.org/doc/scipy/reference/building/index.html for details.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.7/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/5l/jz5f6f556ldgx371qwg3_v3m0000gn/T/tmpfvvgu14w Check the logs for full command output
重点在于:To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
解决办法:
-
更新pip:pip3 install --upgrade pip