본문 바로가기
파이썬

파이썬 Python 용 yaml 패키지를 어떻게 설치합니까?

by º기록 2021. 1. 28.
반응형

YAML을 사용하는 Python 프로그램이 있습니다. pip install yaml 을 사용하여 새 서버에 설치하려고했는데 다음을 반환합니다.

$ sudo pip install yaml
Downloading/unpacking yaml
  Could not find any downloads that satisfy the requirement yaml
No distributions at all found for yaml
Storing complete log in /home/pa/.pip/pip.log

Python 용 yaml 패키지를 어떻게 설치합니까? 저는 Python 2.7을 실행하고 있습니다. (OS : Debian Wheezy)

 

해결 방법

 

pip에서 검색 기능을 사용해 볼 수 있습니다.

$ pip search yaml


$ pip install pyyaml

Linux에서 시스템 전체에 python yaml을 설치하려는 경우 aptitude 또는 yum 과 같은 패키지 관리자를 사용할 수도 있습니다.

$ sudo apt-get install python-yaml
$ sudo yum install python-yaml

 

참조 페이지 https://stackoverflow.com/questions/14261614

 

 

반응형

댓글