티스토리 뷰
python
[python] ERROR: Unnamed requirements are not allowed as constraints 오류 처리
hs_seo 2023. 11. 11. 13:04pip를 이용하여 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' 카테고리의 다른 글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Hadoop
- hbase
- build
- mysql
- 정올
- yarn
- SPARK
- 백준
- 하이브
- 하둡
- HDFS
- S3
- 파이썬
- Python
- bash
- airflow
- 다이나믹
- Linux
- java
- HIVE
- SQL
- nodejs
- emr
- error
- oozie
- Tez
- 오류
- 알고리즘
- AWS
- ubuntu
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
글 보관함