[python] ERROR: Unnamed requirements are not allowed as constraints 오류 처리

2023. 11. 11. 13:04·python

pip를 이용하여 superset을 설치할 때 다음과 같은 오류가 발생하였습니다.

 

$ pip install apache-superset==2.1.1 -c https://raw.githubusercontent.com/apache/superset/2.1.1/requirements/base.txt
DEPRECATION: Constraints are only allowed to take the form of a package name and a version specifier. Other forms were originally permitted as an accident of the implementation, but were undocumented. The new implementation of the resolver no longer supports these forms. A possible replacement is replacing the constraint with a requirement. Discussion can be found at https://github.com/pypa/pip/issues/8210
ERROR: Unnamed requirements are not allowed as constraints

 

이 오류는 pip constraint 파일에 오타가 있어서 발생하였습니다.

 

base.txt 파일을 확인해보면 첫 번째 부분의 -e file 부분에 오타가 있어서 저 부분으르 제거하고 설치하면 됩니다.

 

# 파일 다운로드
wget https://raw.githubusercontent.com/apache/superset/2.1.1/requirements/base.txt

# 파일 내용 수정
vi base.txt

# pip 설치. 
# pyyaml 부분에 오류가 발생하면 현재 최신 버전인 6.0.1로 수정 
pip install -r base.txt

# superset 설치
pip install apache-superset==2.1.1
반응형
저작자표시 비영리 동일조건 (새창열림)

'python' 카테고리의 다른 글

[python] pyyaml 설치중 _DeprecatedConfig: Deprecated config in `setup.cfg` 오류  (0) 2023.11.08
[python] python-kafka 라이브러리에서 ssl.SSLError: [SSL] PEM lib (_ssl.c:3833) in python ssl library 오류 처리  (0) 2023.09.13
[pyhive] pyhive에서 커버로스 인증을 사용할 때 no mechanism available: No worthy mechs found 오류  (0) 2023.08.19
[python] 함수 변수의 *, ** 전달자 확인  (0) 2023.07.02
[python] pandas import 시 UserWarning: Could not import the lzma module. Your installed Python is incomplete 오류  (0) 2023.03.21
'python' 카테고리의 다른 글
  • [python] pyyaml 설치중 _DeprecatedConfig: Deprecated config in `setup.cfg` 오류
  • [python] python-kafka 라이브러리에서 ssl.SSLError: [SSL] PEM lib (_ssl.c:3833) in python ssl library 오류 처리
  • [pyhive] pyhive에서 커버로스 인증을 사용할 때 no mechanism available: No worthy mechs found 오류
  • [python] 함수 변수의 *, ** 전달자 확인
hs_seo
hs_seo
Hello World!
    반응형
  • hs_seo
    개발자로 살아남기
    hs_seo
  • 전체
    오늘
    어제
    • 전체 (1140)
      • 개발자 (21)
        • 개발에 유의할 점 (0)
        • 면접 (5)
      • IT 소식 (5)
        • 업계 (1)
      • java (51)
        • 디자인패턴 (3)
        • apache-common (1)
      • 개념 (47)
        • 자료구조 (4)
        • 함수형사고 (8)
        • 디자인패턴 (1)
      • 데이터분석 (1)
      • python (67)
        • 코드조각 (12)
        • 라이브러리 (2)
      • 빅데이터 (418)
        • zookeeper (5)
        • hadoop (78)
        • hdfs (12)
        • hive (127)
        • hbase (16)
        • spark (40)
        • scala (4)
        • trino (3)
        • oozie (41)
        • Hue (9)
        • R (5)
        • sqoop (6)
        • flume (3)
        • elasticsearch (2)
        • airflow (16)
        • kafka (3)
        • kubernetes (10)
        • openstack (3)
        • flink (2)
        • redis (2)
      • 빅데이터 강좌 (2)
      • 알고리즘 (131)
        • 알고리즘 (1)
        • 백준 (61)
        • 정올 (41)
        • 더블릿 (5)
        • 프로그래머스 (1)
      • 프로그래밍 언어 (30)
        • go (4)
        • js (9)
        • .Net (6)
        • Jsp (1)
        • ansible (3)
        • terraform (6)
      • Tools (56)
        • docker (2)
        • macbook (6)
        • maven (3)
        • sublime (1)
      • 프레임워크 (25)
        • [JS] angularjs (2)
        • [JS] node.js (19)
        • [Java] spring (2)
        • Android (2)
      • 데이타베이스 (43)
        • SQLD (5)
        • Oracle (1)
        • MySQL (8)
        • ADsP (2)
      • 리눅스 (25)
        • Bash (61)
      • GCP (5)
      • AWS (34)
        • EC2 (2)
        • EMR (14)
      • 정보보안기사 (4)
        • 네트워크 (1)
      • 개인 (80)
        • 업무실수 (0)
        • 책 (9)
        • 교육 (3)
        • 여행 (17)
        • 영화 (12)
        • 음악 (2)
        • 피규어 (4)
        • 게임 (3)
        • 생각 (7)
        • 기타 (10)
        • 좋은글 (5)
        • 좋은 사이트 (2)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
  • 링크

    • 빅데이터-하둡,하이브로 시작하기
    • 빅데이터-스칼라, 스파크로 시작하기
    • Kaggle에서 파이썬으로 데이터 분석 시작하기
    • 쉘스크립트 개발 시작하기
    • 개발자가 데이터 분석 준전문가 되기
    • 데브쿠마
  • 공지사항

  • 인기 글

  • 태그

    mysql
    Python
    S3
    java
    build
    하둡
    airflow
    ubuntu
    HIVE
    파이썬
    nodejs
    error
    oozie
    bash
    hbase
    Tez
    Linux
    정올
    다이나믹
    오류
    emr
    AWS
    SPARK
    yarn
    k8s
    HDFS
    알고리즘
    하이브
    Hadoop
    백준
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
hs_seo
[python] ERROR: Unnamed requirements are not allowed as constraints 오류 처리
상단으로

티스토리툴바