Closed pika97 closed 2 years ago
The error looks like it is an error installing scipy, not scispacy. Can you confirm this by trying to install scipy separately?
I already have scipy installed
(bio) ➜ ~ pip install scipy Requirement already satisfied: scipy in /opt/homebrew/Caskroom/miniforge/base/envs/bio/lib/python3.8/site-packages (1.8.1) Requirement already satisfied: numpy<1.25.0,>=1.17.3 in /opt/homebrew/Caskroom/miniforge/base/envs/bio/lib/python3.8/site-packages (from scipy) (1.23.1)
I can't reproduce as I don't have an M1 mac unfortunately. Can you make sure you can install spacy and nmslib? If you can install those two libraries, everything else should go smoothly. I'd expect one of those to be the problem. Also, please try in a new, clean environment.
Closing due to inactivity
Hi,
I'm trying to install Scispacy on mac m1, python version 3.8.13, pip version 22.1.2, conda 4.11.0.
Error log: (base) ➜ ~ conda activate bio (bio) ➜ ~ pip install scispacy Collecting scispacy Using cached scispacy-0.5.0-py3-none-any.whl (44 kB) Requirement already satisfied: requests<3.0.0,>=2.0.0 in /opt/homebrew/Caskroom/miniforge/base/envs/bio/lib/python3.8/site-packages (from scispacy) (2.28.1) Requirement already satisfied: spacy<3.3.0,>=3.2.0 in /opt/homebrew/Caskroom/miniforge/base/envs/bio/lib/python3.8/site-packages (from scispacy) (3.2.4) Collecting pysbd Using cached pysbd-0.3.4-py3-none-any.whl (71 kB) Requirement already satisfied: numpy in /opt/homebrew/Caskroom/miniforge/base/envs/bio/lib/python3.8/site-packages (from scispacy) (1.23.1) Requirement already satisfied: nmslib>=1.7.3.6 in /opt/homebrew/Caskroom/miniforge/base/envs/bio/lib/python3.8/site-packages (from scispacy) (2.1.1) Collecting conllu Using cached conllu-4.5.1-py2.py3-none-any.whl (16 kB) Collecting scikit-learn>=0.20.3 Using cached scikit-learn-1.1.1.tar.gz (6.8 MB) Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [11073 lines of output] Collecting setuptools<60.0 Using cached setuptools-59.8.0-py3-none-any.whl (952 kB) Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting Cython>=0.28.5 Using cached Cython-0.29.30-py2.py3-none-any.whl (985 kB) Collecting oldest-supported-numpy Using cached oldest_supported_numpy-2022.5.28-py3-none-any.whl (3.9 kB) Collecting scipy>=1.3.2 Using cached scipy-1.8.1.tar.gz (38.2 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting numpy==1.21.0 Using cached numpy-1.21.0-cp38-cp38-macosx_11_0_arm64.whl (12.1 MB) Building wheels for collected packages: scipy Building wheel for scipy (pyproject.toml): started Building wheel for scipy (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
/var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/tmpi02bn307/private/var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/pip-build-env-_rz1_rsn/overlay/lib/python3.8/site-packages/numpy creating /var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/tmpi02bn307/private/var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/pip-build-env-_rz1_rsn/overlay/lib/python3.8/site-packages/numpy/distutils creating /var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/tmpi02bn307/private/var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/pip-build-env-_rz1_rsn/overlay/lib/python3.8/site-packages/numpy/distutils/checks compile options: '-c' extra options: '-march=native' CCompilerOpt.dist_test[576] : CCompilerOpt._dist_test_spawn[711] : Command (clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/bio/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/bio/include -arch arm64 -c /private/var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/pip-build-env-_rz1_rsn/overlay/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.c -o /var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/tmpi02bn307/private/var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/pip-build-env-_rz1_rsn/overlay/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/tmpi02bn307/private/var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/pip-build-env-_rz1_rsn/overlay/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.o.d -march=native) failed with exit status 1 output -> clang-14: error: the clang compiler does not support '-march=native'
1 warning and 2 errors generated. Running from SciPy source directory. /private/var/folders/y8/jrbkx6m56ls9z35szl2w0qmm0000gn/T/pip-build-env-_rz1_rsn/overlay/lib/python3.8/site-packages/numpy/distutils/system_info.py:1989: UserWarning: Optimized (vendor) Blas libraries are not found. Falls back to netlib Blas library which has worse performance. A better performance should be easily gained by switching Blas library. if self._calc_info(blas):
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.