DjangoPeng / DjangoPeng/LLM-quickstart

安装pip install -r requirements.txt报错!!!

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.1k
Forks
590
PR merge metrics
No merged PRs in 30d

Description

安装以来报错:
Collecting scikit-learn==1.3.2 (from -r requirements.txt (line 8))
Downloading scikit-learn-1.3.2.tar.gz (7.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 3.3 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [669 lines of output]
Partial import of sklearn during the build process.
clang: error: unsupported option '-fopenmp'
clang: error: unsupported option '-fopenmp'
/private/var/folders/wd/yfc8vq5j0ps_fd9l3ttwvf3r0000gn/T/pip-install-_wkz4tzn/scikit-learn_f3acd856f46843f987a2dc595546ea85/sklearn/_build_utils/openmp_helpers.py:121: UserWarning:

***********
* WARNING *
***********

It seems that scikit-learn cannot be built with OpenMP.

- Make sure you have followed the installation instructions:

https://scikit-learn.org/dev/developers/advanced_installation.html

- If your compiler supports OpenMP but you still see this
message, please submit a bug report at:

https://github.com/scikit-learn/scikit-learn/issues

- The build will continue with OpenMP-based parallelism
disabled. Note however that some estimators will run in
sequential mode instead of leveraging thread-based
parallelism.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with requirements.txt, especially scikit-learn==1.3.2 on line 8, and reproduce the reported pip install -r requirements.txt failure. Check the clang OpenMP error and confirm that the dependency installation completes successfully without the reported metadata-generation failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, scikit-learn
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.