Collecting scikit-learn
Using cached scikit-learn-1.2.2.tar.gz (7.3 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
Ignoring numpy: markers 'python_version == "3.10" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0504DBC8>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
Collecting setuptools
Using cached setuptools-67.8.0-py3-none-any.whl (1.1 MB)
Collecting wheel
Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
Collecting Cython>=0.29.24
Using cached Cython-0.29.35-py2.py3-none-any.whl (988 kB)
Collecting oldest-supported-numpy
Using cached oldest_supported_numpy-2022.11.19-py3-none-any.whl (4.9 kB)
Collecting scipy>=1.3.2
Using cached scipy-1.10.1.tar.gz (42.4 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'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[12 lines of output]
+ meson setup --prefix=c:\python\python38-32 C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c\.mesonpy-3pwxxm7h\build --native-file=C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c\.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
The Meson build system
Version: 1.1.1
Source dir: C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c
Build dir: C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c\.mesonpy-3pwxxm7h\build
Build type: native build
Project name: SciPy
Project version: 1.10.1
..\..\meson.build:1:0: ERROR: Compiler cl can not compile programs.
A full log can be found at C:\Users\啊\AppData\Local\Temp\pip-install-9zbse_kk\scipy_54c4098e4e34424c9352b71b088ca55c\.mesonpy-3pwxxm7h\build\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.
[end of output]
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.
受不了,我还特地配置了c的环境变量,还是不能成功配置sklearn