• 카테고리

    질문 & 답변
  • 세부 분야

    데이터 분석

  • 해결 여부

    미해결

-c anaconda 입력 관련 질문

21.04.28 23:14 작성 조회수 1.15k

1

안녕하세요, 선생님

다름이 아니라 `pip install package명` 이나 `conda install package명` 은 써보긴 했는데

중간에 -c anaconda 입력이 무엇인지 찾아봤는데

채널을 추가한다 뭐 이런식으로 나오는데 채널이 뭔지도 잘 몰라서요..

conda-forge 도 앞에서 설명하신 검증된 anaconda 패키지 라고 나오는데 -c 랑 엮어서 쓰던데

-c anaconda와 conda-forge 좀 간단하게 설명해주실 수 있을까요?

또 안붙이는거랑 크게 차이가 있는지도 궁금합니다.

감사합니다.

답변 1

답변을 작성해보세요.

0

안녕하세요. 

질문해 주신 것처럼 -c 는 채널의 약자 입니다. 

아래와 같이 아나콘다의 가상환경 설정을 할 수가 있는데요.

--------------

environment.yaml <= 환경설정 파일로 .yaml 이라는 확장자를 사용하는 파일입니다.

--------------

name: post

channels:

  - default

  - conda-forge

  

dependencies:

  - python=3.8

--------------

Anaconda Inc.에서 관리 하는 Anaconda Cloud 의 기본 채널 외에도 패키지를 설치할 수있는 다른 채널이 있는데요. 

인기있는 채널은 커뮤니티 주도 패키지 컬렉션을 포함하는 conda-forge 입니다. 

아래가 conda-forge  페이지인데요. 

[conda-forge :: Anaconda.org](https://anaconda.org/conda-forge)

아래 저장소에 가면 conda-forge 저장소에 있는 패키지를 보실 수 있습니다.

https://anaconda.org/conda-forge/repo

그래서 -c conda-forge 는 어떤 저장소에 있는 패키지를 설치할 것인지를 의미합니다.

-c anaconda 는 anaconda 저장소를 의미하며 아래 주소에 있는 패키지들을 이용할 수 있습니다.

[anaconda :: Anaconda.org](https://anaconda.org/anaconda)

아래는 공식 페이지에 있는 두 저장소의 소개 문구 입니다.

conda-forge

avatar

Organization created on Apr 11, 2015

  • A community-led collection of recipes, build infrastructure, and distributions for the conda package manager.

Anaconda's internal mirroring channel

avatar

Organization created on Sep 18, 2015

    • Anaconda, Inc.
    • Austin, Texas

  • The packages on this channel are covered by the Anaconda repository Terms of Service. Among other things, the ToS prohibits heavy commercial use and mirroring by any third party for commercial purposes.

감사합니다.