• 카테고리

    질문 & 답변
  • 세부 분야

    데이터 분석

  • 해결 여부

    미해결

pandas-profiling 설치 오류

24.02.29 16:40 작성 조회수 261

0

pip install pandas-profiling 실행 시

아래 오류가 발생합니다.

어떻게 하면 될까요?

 

(base) C:\Users\bi.yang>pip install pandas-profiling

Collecting pandas-profiling

Using cached pandas_profiling-3.6.6-py2.py3-none-any.whl (324 kB)

Collecting ydata-profiling

Using cached ydata_profiling-4.6.5-py2.py3-none-any.whl (357 kB)

Requirement already satisfied: matplotlib<3.9,>=3.2 in c:\programdata\anaconda3\lib\site-packages (from ydata-profiling->pandas-profiling) (3.5.2)

Collecting numba<0.59.0,>=0.56.0

..............

Installing collected packages: llvmlite, dacite, annotated-types, typeguard, pydantic, numba, imagehash, visions, phik, ydata-profiling, pandas-profiling

Attempting uninstall: llvmlite

Found existing installation: llvmlite 0.38.0

ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

 

 

답변 2

·

답변을 작성해보세요.

0

안녕하세요.

답변이 늦었습니다. 판다스 프로파일링이 ydata-profiling 으로 변경이 되었습니다.

그래서 다음 링크의 문서를 참고해서 ydata-profiling 을 설치해 주시면 기존 판다스프로파일링을 사용하실 수 있습니다.

[ydataai/ydata-profiling: 1 Line of code data quality profiling & exploratory data analysis for Pandas and Spark DataFrames.](https://github.com/ydataai/ydata-profiling)

 

다음 내용을 참고해 주세요.

 

Quickstart

Install

pip install ydata-profiling

or

conda install -c conda-forge ydata-profiling

Start profiling

Start by loading your pandas DataFrame as you normally would, e.g. by using:

import numpy as np
import pandas as pd
from ydata_profiling import ProfileReport

df = pd.DataFrame(np.random.rand(100, 5), columns=["a", "b", "c", "d", "e"])

To generate the standard profiling report, merely run:

profile = ProfileReport(df, title="Profiling Report")

 

 

0

인프런 AI 인턴님의 프로필

인프런 AI 인턴

2024.02.29

안녕하세요, 인프런 AI 인턴입니다.

질문하신 pandas-profiling 설치 오류와 관련하여 llvmlite 패키지의 삭제를 시도했으나 distutils로 설치된 프로젝트이기 때문에 정확한 파일을 결정할 수 없어 오류가 발생하는 것을 확인할 수 있습니다. 이러한 문제는 종종 Python 패키지 관리의 복잡성과 관련된 것이며, 대부분의 경우 특정 패키지의 설치 또는 업그레이드 과정에서 발생합니다.

가장 유사한 질문으로 pandas-profiling 설치 불가에 대한 답변이 있었습니다. 이 경우에는 markupsafe 관련 에러가 발생했고, 결국 호환성 문제로 인해 특정 버전을 명시하여 설치하는 방법이 제공되었습니다. 그러나 이 경우에는 llvmlite와 관련된 문제이기 때문에 동일한 해결 방법을 적용하는 것이 반드시 해결책이 되지는 않습니다.

특정한 문서나 게시물이 해당 llvmlite 제거 문제를 직접 해결하는데 사용될 수 있는 정보를 제공하지 않기 때문에, 다음과 같은 일반적인 해결 방법을 제안할 수 있습니다:

  1. llvmlite 패키지가 다른 패키지들과 연관되어 있을 수 있으니, 먼저 다른 방법으로 제거를 시도해 볼 것을 권장합니다. 예를 들어, Anaconda PromptCommand Prompt에서 다음 명령어를 사용하여 강제로 삭제를 시도할 수 있습니다:

    pip uninstall llvmlite -y
    

    또는 conda를 사용한다면:

    conda remove llvmlite
    
  2. 만약 표준적인 제거 방법으로 문제가 해결되지 않는다면, pip 대신 conda 환경에서 pandas-profiling과 관련된 패키지들을 관리해보는 것도 한 가지 방법입니다. 예를 들어, 다음과 같은 명령어를 사용할 수 있습니다:

    conda install -c conda-forge pandas-profiling
    
  3. 위의 권장 사항들이 도움이 되지 않는다면, Python 가상 환경을 새로 만들어 그 환경에서 패키지 설치를 시도하는 것도 좋은 해결책이 될 수 있습니다.

이와 관련하여 링크를 첨부할 가치있는 기존의 답변을 찾을 수 없으므로, 상황에 따라 적절한 전문 지식을 가진 커뮤니티나 기술 지원에 문의하시는 것을 권장합니다.

저는 질문자님의 이해를 돕고자 지식공유자님의 기존 답변을 참고하여 유사한 답변 링크를 추천해드리고 있습니다.
현재 베타 기능으로 답변이 만족스럽지 않을 수 있는 점 양해 부탁드립니다. 🙏
추가적으로 궁금한 점이 있으시면, 이어서 질문해 주세요. 곧 지식공유자께서 답변해 주실 것입니다.