[FAQ] ImportError: scipy._cyutility does not export expected C function slice_memviewslice when importing sklearn

Đang mở
#538 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #539 của @github-actions — đã đóng, không merge

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
20/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
numpy, python, scikit-learn
Lĩnh vực
documentation

Hướng nghiên cứu

The proposed FAQ entry is already drafted in the issue body, and pull request #539 is open against it, so check that PR before doing anything else. Compare its wording with the Q/A text here and with the existing machine-learning-zoomcamp FAQ file in the DataTalksClub/faq repository. Done means the entry is in the FAQ file once and the PR is merged or closed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

faq-proposal
Course

machine-learning-zoomcamp

Question

Q: ImportError: scipy._cyutility does not export expected C function slice_memviewslice when importing sklearn
The scipy install is broken or mismatched with numpy or scikit-learn, usually after a pip install (for example xgboost) into a conda environment. Reinstall them together with python -m pip install --force-reinstall --no-cache-dir scipy numpy scikit-learn, restart the kernel, and consider using a dedicated conda environment so pip and conda packages don’t clash.

Answer

A: The scipy install is broken or mismatched with numpy or scikit-learn, usually after a pip install into a conda environment. Reinstall them together with python -m pip install --force-reinstall --no-cache-dir scipy numpy scikit-learn, restart the kernel, and consider a dedicated conda environment so pip and conda packages don’t clash.

Checklist
  • I have searched existing FAQs and this question is not already answered
  • The answer provides accurate, helpful information
  • I have included any relevant code examples or links
Ngôn ngữ chính
Python
Star
8
Fork
20
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
26

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DataTalksClub/faq

Tất cả issue của DataTalksClub/faq

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.