ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Anaconda create 명령어(command, 새 conda 환경 생성)
    Search: Python Python 2021. 4. 4. 17:43

    Anaconda create 명령어(command)

     

    예제

    예제1

    (base) C:\>conda create -n Test1
    Collecting package metadata (current_repodata.json): done
    Solving environment: done
    ## Package Plan ##
      environment location: C:\Anaconda3\envs\Test1
    Proceed ([y]/n)?

     

    예제2

    conda create -n TestPy37 python=3.7

     

    202303 버전

    usage: conda-script.py create [-h] [--clone ENV] (-n ENVIRONMENT | -p PATH) [-c CHANNEL] [--use-local]
                                  [--override-channels] [--repodata-fn REPODATA_FNS] [--strict-channel-priority]
                                  [--no-channel-priority] [--no-deps | --only-deps] [--no-pin] [--copy] [--no-shortcuts]
                                  [-C] [-k] [--offline] [-d] [--json] [-q] [-v] [-y] [--download-only]
                                  [--show-channel-urls] [--file FILE] [--no-default-packages]
                                  [--solver {classic} | --experimental-solver {classic}] [--dev]
                                  [package_spec ...]
    
    Create a new conda environment from a list of specified packages. To use the newly-created environment, use 'conda activate envname'. This command requires either the -n NAME or -p PREFIXoption.
    
    Options:
    
    positional arguments:
      package_spec          List of packages to install or update in the conda environment.
    
    options:
      -h, --help            Show this help message and exit.
      --clone ENV           Create a new environment as a copy of an existing local environment.
      --file FILE           Read package versions from the given file. Repeated file specifications can be passed (e.g.
                            --file=file1 --file=file2).
      --dev                 Use `sys.executable -m conda` in wrapper scripts instead of CONDA_EXE. This is mainly for use
                            during tests where we test new conda sources against old Python versions.
    
    Target Environment Specification:
      -n ENVIRONMENT, --name ENVIRONMENT
                            Name of environment.
      -p PATH, --prefix PATH
                            Full path to environment location (i.e. prefix).
    
    Channel Customization:
      -c CHANNEL, --channel CHANNEL
                            Additional channel to search for packages. These are URLs searched in the order they are given
                            (including local directories using the 'file://' syntax or simply a path like
                            '/home/conda/mychan' or '../mychan'). Then, the defaults or channels from .condarc are
                            searched (unless --override-channels is given). You can use 'defaults' to get the default
                            packages for conda. You can also use any name and the .condarc channel_alias value will be
                            prepended. The default channel_alias is https://conda.anaconda.org/.
      --use-local           Use locally built packages. Identical to '-c local'.
      --override-channels   Do not search default or .condarc channels. Requires --channel.
      --repodata-fn REPODATA_FNS
                            Specify file name of repodata on the remote server where your channels are configured or
                            within local backups. Conda will try whatever you specify, but will ultimately fall back to
                            repodata.json if your specs are not satisfiable with what you specify here. This is used to
                            employ repodata that is smaller and reduced in time scope. You may pass this flag more than
                            once. Leftmost entries are tried first, and the fallback to repodata.json is added for you
                            automatically. For more information, see conda config --describe repodata_fns.
    
    Solver Mode Modifiers:
      --strict-channel-priority
                            Packages in lower priority channels are not considered if a package with the same name appears
                            in a higher priority channel.
      --no-channel-priority
                            Package version takes precedence over channel priority. Overrides the value given by `conda
                            config --show channel_priority`.
      --no-deps             Do not install, update, remove, or change dependencies. This WILL lead to broken environments
                            and inconsistent behavior. Use at your own risk.
      --only-deps           Only install dependencies.
      --no-pin              Ignore pinned file.
      --no-default-packages
                            Ignore create_default_packages in the .condarc file.
      --solver {classic}    Choose which solver backend to use.
      --experimental-solver {classic}
                            DEPRECATED. Please use '--solver' instead.
    
    Package Linking and Install-time Options:
      --copy                Install all packages using copies instead of hard- or soft-linking.
      --no-shortcuts        Don't install start menu shortcuts
    
    Networking Options:
      -C, --use-index-cache
                            Use cache of channel index files, even if it has expired. This is useful if you don't want
                            conda to check whether a new version of the repodata file exists, which will save bandwidth.
      -k, --insecure        Allow conda to perform "insecure" SSL connections and transfers. Equivalent to setting
                            'ssl_verify' to 'false'.
      --offline             Offline mode. Don't connect to the Internet.
    
    Output, Prompt, and Flow Control Options:
      -d, --dry-run         Only display what would have been done.
      --json                Report all output as json. Suitable for using conda programmatically.
      -q, --quiet           Do not display progress bar.
      -v, --verbose         Can be used multiple times. Once for INFO, twice for DEBUG, three times for TRACE.
      -y, --yes             Sets any confirmation values to 'yes' automatically. Users will not be asked to confirm any
                            adding, deleting, backups, etc.
      --download-only       Solve an environment and ensure package caches are populated, but exit prior to unlinking and
                            linking packages into the prefix.
      --show-channel-urls   Show channel urls. Overrides the value given by `conda config --show show_channel_urls`.
    
    Examples:
    
    Create an environment containing the package 'sqlite'::
    
        conda create -n myenv sqlite
    
    Create an environment (env2) as a clone of an existing environment (env1)::
    
        conda create -n env2 --clone path/to/file/env1

     

    202104 버전

    usage: _conda create [-h] [--clone ENV] [-n ENVIRONMENT | -p PATH]
                         [-c CHANNEL] [--use-local] [--override-channels]
                         [--repodata-fn REPODATA_FNS] [--strict-channel-priority]
                         [--no-channel-priority] [--no-deps | --only-deps]
                         [--no-pin] [--copy] [--no-shortcuts] [-C] [-k]
                         [--offline] [-d] [--json] [-q] [-v] [-y]
                         [--download-only] [--show-channel-urls] [--file FILE]
                         [--no-default-packages] [--dev]
                         [package_spec [package_spec ...]]
                         
    지정된 패키지 목록에서 새 conda 환경을 만듭니다. 생성 된 환경을 사용하려면 먼저 해당 디렉토리에서 'conda activate envname'을 사용하십시오. 이 명령에는 -n NAME 또는 -p PREFIX 옵션이 필요합니다.
    
    옵션 :
    
    위치 인수 :
      package_spec		conda 환경에서 설치 또는 업데이트 할 패키지입니다.
    
    선택적 인수 :
      -h, --help	이 도움말 메시지를 표시하고 종료합니다.
      --clone ENV	기존 로컬 환경에 대한 경로 (또는 이름).
      --file FILE	주어진 파일에서 패키지 버전을 읽습니다. 반복되는 파일 사양을 전달할 수 있습니다 (예 : --file = file1 --file = file2).
      --dev			래퍼 스크립트에서 CONDA_EXE 대신`sys.executable -m conda`를 사용하십시오. 이것은 주로 이전 Python 버전에 대해 새 conda 소스를 테스트하는 테스트 중에 사용됩니다.
    
    대상 환경 사양 :
      -n ENVIRONMENT, --name ENVIRONMENT
                            환경 이름.
      -p PATH, --prefix PATH
                            환경 위치에 대한 전체 경로 (예 : 접두사).
    
    채널 맞춤화 :
      -c CHANNEL,-channel CHANNEL
                            패키지를 검색하기위한 추가 채널. 주어진 순서대로 검색되는 URL입니다 ( 'file : //'구문을 사용하는 디렉토리 또는 단순히 '/ home / conda / mychan'또는 '../mychan'와 같은 경로를 사용하는 디렉토리 포함). 그런 다음 .condarc의 기본값 또는 채널이 검색됩니다 (--override-channels가 지정되지 않은 경우). 'defaults'를 사용하여 conda의 기본 패키지를 가져올 수 있습니다. 모든 이름을 사용할 수도 있으며 .condarc channel_alias 값이 앞에 추가됩니다. 기본 channel_alias는 http://conda.anaconda.org/입니다.
      --use-local 로컬로 빌드 된 패키지를 사용합니다. '-c local'과 동일합니다.
      --override-channels 기본 또는 .condarc 채널을 검색하지 않습니다. 필요
                            --채널.
      --repodata-fn REPODATA_FNS
                            원격 서버에서 repodata의 이름을 지정하십시오. Conda는 지정한 모든 것을 시도하지만 사양이 여기에서 지정한 내용에 만족하지 않으면 궁극적으로 repodata.json으로 돌아갑니다. 이것은 시간 범위에서 축소 된 repodata를 사용하는 데 사용됩니다. 이 플래그를 두 번 이상 전달할 수 있습니다. 가장 왼쪽 항목이 먼저 시도되고 repodata.json에 대한 대체가 자동으로 추가됩니다.
    
    솔버 모드 수정 자 :
      --strict-channel-priority
                            동일한 이름의 패키지가 더 높은 우선 순위 채널에 나타나는 경우 더 낮은 우선 순위 채널의 패키지는 고려되지 않습니다.
        --no-channel-priority
                            패키지 버전이 채널 우선 순위보다 우선합니다. 'conda config --show channel_priority'에서 지정한 값을 재정의합니다.
      --no-deps
      				종속성을 설치, 업데이트, 제거 또는 변경하지 마십시오. 이것은 깨어진 환경과 일관성없는 행동으로 이어질 것입니다. 자신의 책임하에 사용하십시오.
      --only-deps
      				종속성 만 설치합니다.
      --no-pin
      				고정 된 파일을 무시합니다.
      --no-default-packages
                            .condarc 파일에서 create_default_packages를 무시하십시오.
    
    패키지 연결 및 설치 시간 옵션 :
      --copy 하드 또는 소프트 링크 대신 복사본을 사용하여 모든 패키지를 설치합니다.
      --no-shortcuts 시작 메뉴 바로 가기를 설치하지 마십시오
    
    네트워킹 옵션 :
      -C, --use-index-cache
                            만료 된 경우에도 채널 인덱스 파일의 캐시를 사용합니다.
      -k, --insecure
      		conda가 "안전하지 않은"SSL 연결 및 전송을 수행하도록 허용합니다. 'ssl_verify'를 'false'로 설정하는 것과 같습니다.
      --offline
      		오프라인 모드. 인터넷에 연결하지 마십시오.
    
    출력, 프롬프트 및 흐름 제어 옵션 :
      -d, --dry-run 수행 된 작업 만 표시합니다.
      --json 모든 출력을 json으로보고합니다. conda를 프로그래밍 방식으로 사용하는 데 적합합니다.
      -q, --quiet 진행률 표시 줄을 표시하지 않습니다.
      -v, --verbose 여러 번 사용할 수 있습니다. INFO에 한 번, DEBUG에 두 번, TRACE에 세 번.
      -y, --yes 확인을 요청하지 않습니다.
      --download-only 환경을 해결하고 패키지 캐시가 채워 졌는지 확인하지만 패키지를 연결 해제하고 접두사에 연결하기 전에 종료합니다.
      --show-channel-urls 채널 URL을 표시합니다. 'conda config --show show_channel_urls'에서 지정한 값을 재정의합니다.
    
    예 :
    
        conda create -n myenv sqlite

     

    C:\>_conda create
    usage: _conda create [-h] [--clone ENV] [-n ENVIRONMENT | -p PATH]
                         [-c CHANNEL] [--use-local] [--override-channels]
                         [--repodata-fn REPODATA_FNS] [--strict-channel-priority]
                         [--no-channel-priority] [--no-deps | --only-deps]
                         [--no-pin] [--copy] [--no-shortcuts] [-C] [-k]
                         [--offline] [-d] [--json] [-q] [-v] [-y]
                         [--download-only] [--show-channel-urls] [--file FILE]
                         [--no-default-packages] [--dev]
                         [package_spec [package_spec ...]]
    
    Create a new conda environment from a list of specified packages. To use the created environment, use 'conda activate envname' look in that directory first.  This command requires either the -n NAME or -p PREFIX option.
    
    Options:
    
    positional arguments:
      package_spec          Packages to install or update in the conda environment.
    
    optional arguments:
      -h, --help.            Show this help message and exit.
      --clone ENV           Path to (or name of) existing local environment.
      --file FILE           Read package versions from the given file. Repeated                        file specifications can be passed (e.g. --file=file1                        --file=file2).
      --dev                 Use `sys.executable -m conda` in wrapper scripts                        instead of CONDA_EXE. This is mainly for use during                        tests where we test new conda source against old                        Python versions.
    
    Target Environment Specification:
      -n ENVIRONMENT, --name ENVIRONMENT
                            Name of environment.
      -p PATH, --prefix PATH
                            Full path to environment location (i.e. prefix).
    
    Channel Customization:
      -c CHANNEL, --channel CHANNEL
                            Additional channel to search for packages. These are URLs searched in the order they are given (including directories using the 'file://' syntax or simply a path like '/home/conda/mychan' or '../mychan'). Then, the defaults or channels from .condarc are searched (unless --override-channels is given). You can use 'defaults' to get the default packages for conda. You can also use any name and the .condarc channel_alias value will be prepended. The default channel_alias is http://conda.anaconda.org/.
      --use-local           Use locally built packages. Identical to '-c local'.
      --override-channels   Do not search default or .condarc channels. Requires
                            --channel.
      --repodata-fn REPODATA_FNS
                            Specify name of repodata on remote server. Conda will try whatever you specify, but will ultimately fall back to repodata.json if your specs are not satisfiable with what you specify here. This is used to employ repodata that is reduced in time scope. You may pass this flag more than once. Leftmost entries are tried first, and the fallback to repodata.json is added for you automatically.
    
    Solver Mode Modifiers:
      --strict-channel-priority
                            Packages in lower priority channels are not considered if a package with the same name appears in a higher priority channel.
      --no-channel-priority
                            Package version takes precedence over channel priority. Overrides the value given by `conda config --show channel_priority`.
      --no-deps             Do not install, update, remove, or change dependencies. This WILL lead to broken environments and inconsistent behavior. Use at your own risk.
      --only-deps           Only install dependencies.
      --no-pin              Ignore pinned file.
      --no-default-packages
                            Ignore create_default_packages in the .condarc file.
    
    Package Linking and Install-time Options:
      --copy                Install all packages using copies instead of hard- or soft-linking.
      --no-shortcuts        Don't install start menu shortcuts
    
    Networking Options:
      -C, --use-index-cache
                            Use cache of channel index files, even if it has expired.
      -k, --insecure        Allow conda to perform "insecure" SSL connections and transfers. Equivalent to setting 'ssl_verify' to 'false'.
      --offline             Offline mode. Don't connect to the Internet.
    
    Output, Prompt, and Flow Control Options:
      -d, --dry-run         Only display what would have been done.
      --json                Report all output as json. Suitable for using conda programmatically.
      -q, --quiet           Do not display progress bar.
      -v, --verbose         Can be used multiple times. Once for INFO, twice for DEBUG, three times for TRACE.
      -y, --yes             Do not ask for confirmation.
      --download-only       Solve an environment and ensure package caches are populated, but exit prior to unlinking and linking packages into the prefix.
      --show-channel-urls   Show channel urls. Overrides the value given by `conda config --show show_channel_urls`.
    
    Examples:
    
        conda create -n myenv sqlite
    

     

     

     

    'Python' 카테고리의 다른 글

    OpenCv haarcascades 얼굴인식  (0) 2021.04.12
    Python Scikit-Learn LinearSVC And학습  (0) 2021.04.12
    Python Scikit-Learn (sklearn)  (0) 2021.04.11
    Anaconda 가상환경  (0) 2021.04.04
    Anaconda 명령어(command)  (0) 2021.04.04
    Python Anaconda  (0) 2021.04.04
    Python pycocotools-windows  (0) 2021.04.04
    Python imgaug  (0) 2021.04.04

    댓글