Issues installing typedb-cti dependency scipy on macOS with M1 chip

rta7y2nd  于 2022-11-10  发布在  Mac
关注(0)|答案(1)|浏览(174)

While following the instructions to install typedb-cti:

cd <path/to/typedb-data-cti>/
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

I got the following errors:

Collecting scipy>=1.8
  Using cached scipy-1.9.1.tar.gz (42.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
...
...
...
Library npymath found: YES
      Library npyrandom found: YES
      Did not find CMake 'cmake'
      Found CMake: NO
      Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
      Run-time dependency openblas found: NO (tried framework)

      ../../scipy/meson.build:130:0: ERROR: Pkg-config binary for machine 1 not found. Giving up.
lokaqttq

lokaqttq1#

对我有效的是(激活venv后)首先安装scipy的最新夜间构建版本,如下所示:
pip install --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy
然后运行:
pip install -r requirements.txt

相关问题