티스토리 뷰

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
반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함