Installing the SciPy Stack

本文介绍如何使用官方二进制安装器在常见Windows和OS-X系统上安装SciPy栈中的核心Python包,包括numpy、scipy、matplotlib、ipython、pandas、sympy和nose等。同时,还提供了从源代码构建这些包的方法,适用于完全用Python编写的包,而对于需要编译C代码的包如NumPy,则需遵循项目的详细说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Individual binary and source packages

The maintainers of many of the packages in the SciPy stack provide “official” binary installers for common Windows and OS-X systems that can be used to install the packages one by one. These installers are generally built to be compatible with the Python binaries available from python.org.

For Windows: Christoph Gohlke provides pre-built Windows installers for many Python packages, including all of the core SciPy stack.

You can also build any of the SciPy packages from source, for instance if you want to get involved with development. This is easy for packages written entirely in Python, while others like NumPy require compiling C code. Refer to individual projects for more details.

$ pip3 install PTM-POSE Collecting PTM-POSE Downloading ptm_pose-0.3.0-py3-none-any.whl.metadata (7.6 kB) Collecting pandas==2.2.* (from PTM-POSE) Downloading pandas-2.2.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (89 kB) Collecting numpy==1.26.* (from PTM-POSE) Downloading numpy-1.26.4.tar.gz (15.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 478.4 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting scipy==1.13.* (from PTM-POSE) Downloading scipy-1.13.1.tar.gz (57.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.2/57.2 MB 474.2 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [43 lines of output] + meson setup /tmp/pip-install-z8uxbhaj/scipy_2d56e94197b1489098e8f0980667dae9 /tmp/pip-install-z8uxbhaj/scipy_2d56e94197b1489098e8f0980667dae9/.mesonpy-nurt08x2 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-z8uxbhaj/scipy_2d56e94197b1489098e8f0980667dae9/.mesonpy-nurt08x2/meson-python-native-file.ini The Meson build system Version: 1.8.2 Source dir: /tmp/pip-install-z8uxbhaj/scipy_2d56e94197b1489098e8f0980667dae9 Build dir: /tmp/pip-install-z8uxbhaj/scipy_2d56e94197b1489098e8f0980667dae9/.mesonpy-nurt08x2 Build type: native build Project name: scipy Project version: 1.13.1 C compiler for the host machine: cc (gcc 13.3.0 "cc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0") C linker for the host machine: cc ld.bfd 2.42 C++ compiler for the host machine: c++ (gcc 13.3.0 "c++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0") C++ linker for the host machine: c++ ld.bfd 2.42 Cython compiler for the host machine: cython (cython 3.0.12) Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python found: YES (/mnt/940660EA0660CEB4/PTM-POSE/myenv/bin/python3) Found pkg-config: YES (/usr/bin/pkg-config) 1.8.1 Run-time dependency python found: YES 3.13 Program cython found: YES (/tmp/pip-build-env-13qjdw3k/overlay/bin/cython) Compiler for C supports arguments -Wno-unused-but-set-variable: YES Compiler for C supports arguments -Wno-unused-function: YES Compiler for C supports arguments -Wno-conversion: YES Compiler for C supports arguments -Wno-misleading-indentation: YES Library m found: YES Fortran compiler for the host machine: gfortran (gcc 13.3.0 "GNU Fortran (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0") Fortran linker for the host machine: gfortran ld.bfd 2.42 Compiler for Fortran supports arguments -Wno-conversion: YES Checking if "-Wl,--version-script" links: YES Program pythran found: YES 0.15.0 0.15.0 (/tmp/pip-build-env-13qjdw3k/overlay/bin/pythran) Found CMake: /usr/bin/cmake (3.28.3) Run-time dependency xsimd found: NO (tried pkgconfig and cmake) Run-time dependency threads found: YES Library npymath found: YES Library npyrandom found: YES pybind11-config found: YES (/tmp/pip-build-env-13qjdw3k/overlay/bin/pybind11-config) 2.12.1 Run-time dependency pybind11 found: YES 2.12.1 Run-time dependency scipy-openblas found: NO (tried pkgconfig) Run-time dependency openblas found: NO (tried pkgconfig and cmake) Run-time dependency openblas found: NO (tried pkgconfig and cmake) ../scipy/meson.build:163:9: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig and cmake A full log can be found at /tmp/pip-install-z8uxbhaj/scipy_2d56e94197b1489098e8f0980667dae9/.mesonpy-nurt08x2/meson-logs/meson-log.txt [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
最新发布
07-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值