).
У таких пакетов, как numpy, pandas, matplotlib, pyqt5 и т. д., не возникло проблем с установкой, но некоторые пакеты, такие как scipy и scikit-learn, выдают ошибки.
Код: Выделить всё
Collecting scipy
Using cached scipy-1.10.1.tar.gz (42.4 MB)
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
╰─> [14 lines of output]
+ meson setup --prefix=C:\Users\XYZ\AppData\Local\Programs\Python\Python38-32 C:\Users\XYZ\AppData\Local\Temp\pip-
install-kcwepnco\scipy_545e8a24382142de9b0a2e3bbeb71b01 C:\Users\XYZ\AppData\Local\Temp\pip-install-kcwepnco
\scipy_545e8a24382142d
e9b0a2e3bbeb71b01\.mesonpy-k7npgzdq\build --native-file=C:\Users\XYZ\AppData\Local\Temp\pip-install-kcwepnco
\scipy_545e8a24382142de9b0a2e3bbeb71b01\.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
The Meson build system
Version: 1.4.1
Source dir: C:\Users\XYZ\AppData\Local\Temp\pip-install-kcwepnco\scipy_545e8a24382142de9b0a2e3bbeb71b01
Build dir: C:\Users\XYZ\AppData\Local\Temp\pip-install-kcwepnco\scipy_545e8a24382142de9b0a2e3bbeb71b01\.mesonpy-
k7npgzdq\build
Build type: native build
Project name: SciPy
Project version: 1.10.1
C compiler for the host machine: cl (msvc 12.00.8168 "Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
12.00.8168 for 80x86")
C linker for the host machine: link link 6.00.8168
..\..\meson.build:1:0: ERROR: None of values ['c++14'] are supported by the C++ compiler. Possible values are
['none', 'none', 'c++11', 'vc++11']
A full log can be found at...
[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.
Моя ОС — Windows 8, а версия Python — 3.8.
Я обновил pip и попробовал:
Код: Выделить всё
py -m pip install --upgrade pip setuptools wheel
Я относительно новичок в Python, поэтому буду очень признателен за подробное или простое решение с использованием pip.< /п>
Подробнее здесь: https://stackoverflow.com/questions/786 ... ect-toml-d