본문 바로가기

pip4.2

Python 파이썬에서 yaml 패키지를 설치하는 방법은 무엇인가요?, How do I install the yaml package for Python? 질문 나는 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을 실행 중입니다. (운영체제: Debian Wheezy) 답변 다음 링크에서 https:.. 2023. 11. 3.
pip를 사용하여 Python 패키지를 다른 디렉토리에 설치하려면 어떻게 해야 하나요?, Install a Python package into a different directory using pip? 질문 당연한 대답은 virtualenv와 virtualenvwrapper를 사용하는 것이지만, 다양한 이유로 인해 나는 그렇게 하고 싶지 않거나 할 수 없다. 그래서 어떻게 하면 pip을 사용하여 패키지를 기본 site-packages 이외의 다른 곳에 설치할 수 있을까요? pip install package_name 답변 당신이 찾고 있는 것은 --target 스위치입니다: pip install --target=d:\somewhere\other\than\the\default package_name 하지만 여전히 d:\somewhere\other\than\the\default를 PYTHONPATH에 추가해야 해당 위치에서 실제로 사용할 수 있습니다. -t, --target 에 패키지를 설치합니다. 기본적.. 2023. 9. 15.