1

I am trying install scipy in FreeBSD 13. I have built python 3.10 on FreebSD 13 and managed to install pandas, matplotlib and numpy on a virtual environment which has python 3.10. However, when I try to install sklearn or scipy I get an error saying scipy could not be installed. Here it is below for when doing pip install scipy. I get the same error more or less when trying to install sklearn.

ERROR: Failed building wheel for scipy
  Failed to build scipy
  ERROR: Could not build wheels for scipy, which is required to install pyproject.toml-based projects
Command errored out with exit status 1: /home/schroter/.pymain/dataViz/bin/python3 /tmp/pip-standalone-pip-d3nnvp2f/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-xp_669rf/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'oldest-supported-numpy; python_version!='"'"'3.7'"'"' or platform_machine=='"'"'aarch64'"'"' or platform_system=='"'"'AIX'"'"' or platform_python_implementation == '"'"'PyPy'"'"'' 'numpy==1.14.6; python_version=='"'"'3.7'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation != '"'"'PyPy'"'"'' 'scipy>=1.1.0' Check the logs for full command output.

My pip list is as below:

(dataViz) schroter@SCHROTER:~ % pip list
Package          Version
---------------- -------
cycler           0.11.0
kiwisolver       1.1.0
matplotlib       3.4.3
numpy            1.21.4
pandas           1.3.4
Pillow           8.4.0
pip              21.3.1
pyparsing        3.0.6
python-dateutil  2.8.2
pytz             2021.3
semantic-version 2.8.5
setuptools       58.5.3
setuptools-rust  0.12.1
six              1.16.0
toml             0.10.2
wheel            0.37.0

Would anyone be able to help me in this regards please? Thanks & Best Regards Schroter

4

1 回答 1

-1

您是否尝试过从 freebsd 端口安装 scipy?freebsd 的移植版包含补丁,可以让代码在 FreeBSD 上编译。

于 2021-11-29T09:42:30.800 回答