喜好

喜好检索

生活 蔬菜

蔬菜大全

思考

见闻与录

BT技术

BT蓝牙技术

标签

Anaconda使用 2023年02月13日

    大纲

    下载地址

    https://www.anaconda.com/products/distribution

    anaconda-shell

    在系统CMD 命令下无法执行 conda 命令(不识别) 需要打开 Anaconda Powershell Prompt (anaconda3) 窗口

    conda -h 帮助命令

    conda -h

    
    (base) PS C:\Users\XXXX> conda  -h
    usage: conda-script.py [-h] [-V] command ...
    
    conda is a tool for managing and deploying applications, environments and packages.
    
    Options:
    
    positional arguments:
      command
        clean        Remove unused packages and caches.
        compare      Compare packages between conda environments.
        config       Modify configuration values in .condarc. This is modeled after the git config command. Writes to the
                     user .condarc file (C:\Users\zhuzj5\.condarc) by default. Use the --show-sources flag to display all
                     identified configuration locations on your computer.
        create       Create a new conda environment from a list of specified packages.
        info         Display information about current conda install.
        init         Initialize conda for shell interaction.
        install      Installs a list of packages into a specified conda environment.
        list         List installed packages in a conda environment.
        package      Low-level conda package utility. (EXPERIMENTAL)
        remove       Remove a list of packages from a specified conda environment.
        rename       Renames an existing environment.
        run          Run an executable in a conda environment.
        search       Search for packages and display associated information.The input is a MatchSpec, a query language for
                     conda packages. See examples below.
        uninstall    Alias for conda remove.
        update       Updates conda packages to the latest compatible version.
        upgrade      Alias for conda update.
        notices      Retrieves latest channel notifications.
    
    optional arguments:
      -h, --help     Show this help message and exit.
      -V, --version  Show the conda version number and exit.
    
    conda commands available from other packages:
      build
      content-trust
      convert
      debug
      develop
      env
      index
      inspect
      metapackage
      pack
      render
      repo
      server
      skeleton
      token
      verify
    
    
    

    conda info 查看信息

    conda info 格式

    conda info [-a] [--base] [-e] [-s] [--unsafe-channels]
    
    

    conda info

    (base) PS C:\Users\xxxx> conda info
    
         active environment : base
        active env location : C:\Users\xxxx\anaconda3
                shell level : 1
           user config file : C:\Users\xxxx\.condarc
     populated config files : C:\Users\xxxx\.condarc
              conda version : 22.9.0
        conda-build version : 3.22.0
             python version : 3.9.13.final.0
           virtual packages : __cuda=11.6=0
                              __win=0=0
                              __archspec=1=x86_64
           base environment : C:\Users\xxxx\anaconda3  (writable)
          conda av data dir : C:\Users\xxxx\anaconda3\etc\conda
      conda av metadata url : None
               channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                              https://repo.anaconda.com/pkgs/main/noarch
                              https://repo.anaconda.com/pkgs/r/win-64
                              https://repo.anaconda.com/pkgs/r/noarch
                              https://repo.anaconda.com/pkgs/msys2/win-64
                              https://repo.anaconda.com/pkgs/msys2/noarch
              package cache : C:\Users\xxxx\anaconda3\pkgs
                              C:\Users\xxxx\.conda\pkgs
                              C:\Users\xxxx\AppData\Local\conda\conda\pkgs
           envs directories : C:\Users\xxxx\anaconda3\envs
                              C:\Users\xxxx\.conda\envs
                              C:\Users\xxxx\AppData\Local\conda\conda\envs
                   platform : win-64
                 user-agent : conda/22.9.0 requests/2.28.1 CPython/3.9.13 Windows/10 Windows/10.0.22621
              administrator : False
                 netrc file : None
               offline mode : False
    
    
    

    conda info

    conda info

    (base) PS C:\Users\xxxxx> conda info
    
         active environment : base
        active env location : C:\Users\xxxxx\anaconda3
                shell level : 1
           user config file : C:\Users\xxxxx\.condarc
     populated config files : C:\Users\xxxxx\.condarc
              conda version : 22.9.0
        conda-build version : 3.22.0
             python version : 3.9.13.final.0
           virtual packages : __cuda=11.6=0
                              __win=0=0
                              __archspec=1=x86_64
           base environment : C:\Users\xxxxx\anaconda3  (writable)
          conda av data dir : C:\Users\xxxxx\anaconda3\etc\conda
      conda av metadata url : None
               channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                              https://repo.anaconda.com/pkgs/main/noarch
                              https://repo.anaconda.com/pkgs/r/win-64
                              https://repo.anaconda.com/pkgs/r/noarch
                              https://repo.anaconda.com/pkgs/msys2/win-64
                              https://repo.anaconda.com/pkgs/msys2/noarch
              package cache : C:\Users\xxxxx\anaconda3\pkgs
                              C:\Users\xxxxx\.conda\pkgs
                              C:\Users\xxxxx\AppData\Local\conda\conda\pkgs
           envs directories : C:\Users\xxxxx\anaconda3\envs
                              C:\Users\xxxxx\.conda\envs
                              C:\Users\xxxxx\AppData\Local\conda\conda\envs
                   platform : win-64
                 user-agent : conda/22.9.0 requests/2.28.1 CPython/3.9.13 Windows/10 Windows/10.0.22621
              administrator : False
                 netrc file : None
               offline mode : False
    
    
    

    conda info –base 查看基环境所在路径

    conda info –base

    
    (base) PS C:\Users\xxxx> conda info --base
    C:\Users\xxxx\anaconda3
    
    
    

    conda info -e 当前所有的 conda 环境

    conda info -e

    
    (base) PS C:\Users\xxxx> conda info -e
    # conda environments:
    #
    base                  *  C:\Users\xxxx\anaconda3
    PyCode                   C:\Users\xxxx\anaconda3\envs\PyCode
    zenv                     C:\Users\xxxx\anaconda3\envs\zenv
    
    
    

    conda info -s 当前所有的 conda 环境

    conda info -s

    
    (base) PS C:\Users\xxxx> conda info -s
    sys.version: 3.9.13 (main, Aug 25 2022, 23:51:50) [MS...
    sys.prefix: C:\Users\xxxx\anaconda3
    sys.executable: C:\Users\xxxx\anaconda3\python.exe
    conda location: C:\Users\xxxx\anaconda3\lib\site-packages\conda
    conda-build: C:\Users\xxxx\anaconda3\Scripts\conda-build.exe
    conda-content-trust: C:\Users\xxxx\anaconda3\Scripts\conda-content-trust.exe
    conda-convert: C:\Users\xxxx\anaconda3\Scripts\conda-convert.exe
    conda-debug: C:\Users\xxxx\anaconda3\Scripts\conda-debug.exe
    conda-develop: C:\Users\xxxx\anaconda3\Scripts\conda-develop.exe
    conda-env: C:\Users\xxxx\anaconda3\Scripts\conda-env.exe
    conda-index: C:\Users\xxxx\anaconda3\Scripts\conda-index.exe
    conda-inspect: C:\Users\xxxx\anaconda3\Scripts\conda-inspect.exe
    conda-metapackage: C:\Users\xxxx\anaconda3\Scripts\conda-metapackage.exe
    conda-pack: C:\Users\xxxx\anaconda3\Scripts\conda-pack.exe
    conda-render: C:\Users\xxxx\anaconda3\Scripts\conda-render.exe
    conda-repo: C:\Users\xxxx\anaconda3\Scripts\conda-repo.exe
    conda-server: C:\Users\xxxx\anaconda3\Scripts\conda-server.exe
    conda-skeleton: C:\Users\xxxx\anaconda3\Scripts\conda-skeleton.exe
    conda-token: C:\Users\xxxx\anaconda3\Scripts\conda-token.exe
    conda-verify: C:\Users\xxxx\anaconda3\Scripts\conda-verify.exe
    user site dirs: C:\Users\xxxx\AppData\Roaming\Python\Python37
    
    CIO_TEST: <not set>
    CONDA_DEFAULT_ENV: base
    CONDA_EXE: C:\Users\xxxx\anaconda3\Scripts\conda.exe
    CONDA_PREFIX: C:\Users\xxxx\anaconda3
    CONDA_PROMPT_MODIFIER: (base)
    CONDA_PYTHON_EXE: C:\Users\xxxx\anaconda3\python.exe
    CONDA_ROOT: C:\Users\xxxx\anaconda3
    CONDA_SHLVL: 1
    CURL_CA_BUNDLE: <not set>
    HOMEPATH: \Users\xxxx
    PATH: C:\Users\xxxx\anaconda3;C:\Users\xxxx\anaconda3\Library\mingw-w64\bin;C:\Users\xxxx\anaconda3\Library\usr\bin;C:\Users\xxxx\anaconda3\Library\bin;C:\Users\xxxx\anaconda3\Scripts;C:\Users\xxxx\anaconda3\bin;C:\Users\xxxx\anaconda3\condabin;C:\Windows\System32;C:\Users\xxxx\Desktop\zbin\win_zbin;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\JDK8_64\jre\bin;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\JDK8_64\bin;D:\zsoft_dest\C1_GreenSoft_Zip_Dir\npp.7.8.9.bin.x64;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\python-3.7.9-embed-amd64;C:\Program Files (x86)\Qualcomm\PCAT\bin;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Qualcomm\QIKTool\1.0.122.3;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\python-3.7.9-embed-amd64\Scripts;C:\Program Files (x86)\Qualcomm\QUTSStatusApp;C:\Program Files (x86)\Qualcomm\QXDM5;C:\Program Files (x86)\Qualcomm\EUD;C:\WINDOWS\system32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;D:\Git_Dir\ninja;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;D:\ZWin_Software\D0_Environment_Zip_Dir_Path\python-3.7.9-embed-amd64;C:\Users\xxxx\Desktop\zbin\win_soft\Redis;C:\Users\xxxx\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Program Files\Tesseract-OCR;D:\software\ffmpeg\bin;C:\Users\xxxx\Desktop\zbin\win_rbin;C:\Users\xxxx\Desktop\zbin\lin_zbin;C:\Users\xxxx\Desktop\zbin\win_zbin\bin;C:\Users\xxxx\Desktop\zbin\mac_zbin;C:\Users\xxxx\Desktop\zbin\win_zbin;C:\Users\xxxx\Desktop\zbin\win_pbin;C:\Users\xxxx\Desktop\zbin\python;D:\software\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\Windows\System32;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\JDK8_64\jre\bin;D:\zsoft_dest\D0_Environment_Zip_Dir_Pa;C:\Program Files\JetBrains\PyCharm Community Edition 2022.3.2\bin;.;C:\Users\xxxx\AppData\Local\Microsoft\WindowsApps;.
    PSMODULEPATH: C:\Users\xxxx\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    REQUESTS_CA_BUNDLE: <not set>
    SSL_CERT_FILE: <not set>
    
    

    conda info -a 查看所有信息

    conda info -a

    
    (base) PS C:\Users\xxxxx> conda info -a
    
         active environment : base
        active env location : C:\Users\xxxxx\anaconda3
                shell level : 1
           user config file : C:\Users\xxxxx\.condarc
     populated config files : C:\Users\xxxxx\.condarc
              conda version : 22.9.0
        conda-build version : 3.22.0
             python version : 3.9.13.final.0
           virtual packages : __cuda=11.6=0
                              __win=0=0
                              __archspec=1=x86_64
           base environment : C:\Users\xxxxx\anaconda3  (writable)
          conda av data dir : C:\Users\xxxxx\anaconda3\etc\conda
      conda av metadata url : None
               channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                              https://repo.anaconda.com/pkgs/main/noarch
                              https://repo.anaconda.com/pkgs/r/win-64
                              https://repo.anaconda.com/pkgs/r/noarch
                              https://repo.anaconda.com/pkgs/msys2/win-64
                              https://repo.anaconda.com/pkgs/msys2/noarch
              package cache : C:\Users\xxxxx\anaconda3\pkgs
                              C:\Users\xxxxx\.conda\pkgs
                              C:\Users\xxxxx\AppData\Local\conda\conda\pkgs
           envs directories : C:\Users\xxxxx\anaconda3\envs
                              C:\Users\xxxxx\.conda\envs
                              C:\Users\xxxxx\AppData\Local\conda\conda\envs
                   platform : win-64
                 user-agent : conda/22.9.0 requests/2.28.1 CPython/3.9.13 Windows/10 Windows/10.0.22621
              administrator : False
                 netrc file : None
               offline mode : False
    
    # conda environments:
    #
    base                  *  C:\Users\xxxxx\anaconda3
    PyCode                   C:\Users\xxxxx\anaconda3\envs\PyCode
    zenv                     C:\Users\xxxxx\anaconda3\envs\zenv
    
    sys.version: 3.9.13 (main, Aug 25 2022, 23:51:50) [MS...
    sys.prefix: C:\Users\xxxxx\anaconda3
    sys.executable: C:\Users\xxxxx\anaconda3\python.exe
    conda location: C:\Users\xxxxx\anaconda3\lib\site-packages\conda
    conda-build: C:\Users\xxxxx\anaconda3\Scripts\conda-build.exe
    conda-content-trust: C:\Users\xxxxx\anaconda3\Scripts\conda-content-trust.exe
    conda-convert: C:\Users\xxxxx\anaconda3\Scripts\conda-convert.exe
    conda-debug: C:\Users\xxxxx\anaconda3\Scripts\conda-debug.exe
    conda-develop: C:\Users\xxxxx\anaconda3\Scripts\conda-develop.exe
    conda-env: C:\Users\xxxxx\anaconda3\Scripts\conda-env.exe
    conda-index: C:\Users\xxxxx\anaconda3\Scripts\conda-index.exe
    conda-inspect: C:\Users\xxxxx\anaconda3\Scripts\conda-inspect.exe
    conda-metapackage: C:\Users\xxxxx\anaconda3\Scripts\conda-metapackage.exe
    conda-pack: C:\Users\xxxxx\anaconda3\Scripts\conda-pack.exe
    conda-render: C:\Users\xxxxx\anaconda3\Scripts\conda-render.exe
    conda-repo: C:\Users\xxxxx\anaconda3\Scripts\conda-repo.exe
    conda-server: C:\Users\xxxxx\anaconda3\Scripts\conda-server.exe
    conda-skeleton: C:\Users\xxxxx\anaconda3\Scripts\conda-skeleton.exe
    conda-token: C:\Users\xxxxx\anaconda3\Scripts\conda-token.exe
    conda-verify: C:\Users\xxxxx\anaconda3\Scripts\conda-verify.exe
    user site dirs: C:\Users\xxxxx\AppData\Roaming\Python\Python37
    
    CIO_TEST: <not set>
    CONDA_DEFAULT_ENV: base
    CONDA_EXE: C:\Users\xxxxx\anaconda3\Scripts\conda.exe
    CONDA_PREFIX: C:\Users\xxxxx\anaconda3
    CONDA_PROMPT_MODIFIER: (base)
    CONDA_PYTHON_EXE: C:\Users\xxxxx\anaconda3\python.exe
    CONDA_ROOT: C:\Users\xxxxx\anaconda3
    CONDA_SHLVL: 1
    CURL_CA_BUNDLE: <not set>
    HOMEPATH: \Users\xxxxx
    PATH: C:\Users\xxxxx\anaconda3;C:\Users\xxxxx\anaconda3\Library\mingw-w64\bin;C:\Users\xxxxx\anaconda3\Library\usr\bin;C:\Users\xxxxx\anaconda3\Library\bin;C:\Users\xxxxx\anaconda3\Scripts;C:\Users\xxxxx\anaconda3\bin;C:\Users\xxxxx\anaconda3\condabin;C:\Windows\System32;C:\Users\xxxxx\Desktop\zbin\win_zbin;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\JDK8_64\jre\bin;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\JDK8_64\bin;D:\zsoft_dest\C1_GreenSoft_Zip_Dir\npp.7.8.9.bin.x64;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\python-3.7.9-embed-amd64;C:\Program Files (x86)\Qualcomm\PCAT\bin;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Qualcomm\QIKTool\1.0.122.3;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\python-3.7.9-embed-amd64\Scripts;C:\Program Files (x86)\Qualcomm\QUTSStatusApp;C:\Program Files (x86)\Qualcomm\QXDM5;C:\Program Files (x86)\Qualcomm\EUD;C:\WINDOWS\system32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;D:\Git_Dir\ninja;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;D:\ZWin_Software\D0_Environment_Zip_Dir_Path\python-3.7.9-embed-amd64;C:\Users\xxxxx\Desktop\zbin\win_soft\Redis;C:\Users\xxxxx\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Program Files\Tesseract-OCR;D:\software\ffmpeg\bin;C:\Users\xxxxx\Desktop\zbin\win_rbin;C:\Users\xxxxx\Desktop\zbin\lin_zbin;C:\Users\xxxxx\Desktop\zbin\win_zbin\bin;C:\Users\xxxxx\Desktop\zbin\mac_zbin;C:\Users\xxxxx\Desktop\zbin\win_zbin;C:\Users\xxxxx\Desktop\zbin\win_pbin;C:\Users\xxxxx\Desktop\zbin\python;D:\software\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\Windows\System32;D:\zsoft_dest\D0_Environment_Zip_Dir_Path\JDK8_64\jre\bin;D:\zsoft_dest\D0_Environment_Zip_Dir_Pa;C:\Program Files\JetBrains\PyCharm Community Edition 2022.3.2\bin;.;C:\Users\xxxxx\AppData\Local\Microsoft\WindowsApps;.
    PSMODULEPATH: C:\Users\xxxxx\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    REQUESTS_CA_BUNDLE: <not set>
    SSL_CERT_FILE: <not set>
    
    
    

    conda create 创建新的 conda 环境

    conda create 格式

    conda create [-n env_name | -p path] [--clone env_name] [-c channel_address]   [packages]
    

    conda create -n my_env 创建my_env的环境

    conda create -n my_env

    
    (base) PS C:\Users\xxxx> conda create -n my_env
    Collecting package metadata (current_repodata.json): done
    Solving environment: done
    
    
    ==> WARNING: A newer version of conda exists. <==
      current version: 22.9.0
      latest version: 23.1.0
    
    Please update conda by running
    
        $ conda update -n base -c defaults conda
    
    
    
    ## Package Plan ##
    
      environment location: C:\Users\xxxx\anaconda3\envs\my_env
    
    
    
    Proceed ([y]/n)? y
    
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    #
    # To activate this environment, use
    #
    #     $ conda activate my_env
    #
    # To deactivate an active environment, use
    #
    #     $ conda deactivate
    
    Retrieving notices: ...working... done
    (base) PS C:\Users\xxxx>
    
    
    
    

    conda create -n new_env –clone old_env 复制环境

    conda create -n new_env –clone my_env

    
    (base) PS C:\Users\zhuzj5> conda create -n new_env --clone my_env
    Source:      C:\Users\zhuzj5\anaconda3\envs\my_env
    Destination: C:\Users\zhuzj5\anaconda3\envs\new_env
    Packages: 0
    Files: 0
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    #
    # To activate this environment, use
    #
    #     $ conda activate new_env
    #
    # To deactivate an active environment, use
    #
    #     $ conda deactivate
    
    Retrieving notices: ...working... done
    (base) PS C:\Users\zhuzj5>
    
    
    

    conda activate my_env 进入到 my_env 环境

    conda activate my_env

    (base) PS C:\Users\xxxx> conda activate my_env
    (my_env) PS C:\Users\xxxx>
    
    

    conda deactivate 退出当前环境到根环境

    conda deactivate

    (base) PS C:\Users\zhuzj5> conda activate my_env       【进入环境 my_env】
    (my_env) PS C:\Users\zhuzj5> conda deactivate          【退出当前my_env环境 回退到 环境base】
    (base) PS C:\Users\zhuzj5>
    
    

    conda list 查看当前环境下安装的包

    conda list 命令格式

    conda list [-n env_name | -p path] [package]
    

    conda list (base根环境)

    
    (base) PS C:\Users\zhuzj5> conda list
    # packages in environment at C:\Users\zhuzj5\anaconda3:
    #
    # Name                    Version                   Build  Channel
    _ipyw_jlab_nb_ext_conf    0.1.0            py39haa95532_0    defaults
    alabaster                 0.7.12             pyhd3eb1b0_0    defaults
    anaconda                  2022.10                  py39_0    defaults
    anaconda-client           1.11.0           py39haa95532_0    defaults
    anaconda-navigator        2.3.1            py39haa95532_0    defaults
    anaconda-project          0.11.1           py39haa95532_0    defaults
    anyio                     3.5.0            py39haa95532_0    defaults
    appdirs                   1.4.4              pyhd3eb1b0_0    defaults
    argon2-cffi               21.3.0             pyhd3eb1b0_0    defaults
    argon2-cffi-bindings      21.2.0           py39h2bbff1b_0    defaults
    arrow                     1.2.2              pyhd3eb1b0_0    defaults
    astroid                   2.11.7           py39haa95532_0    defaults
    astropy                   5.1              py39h080aedc_0    defaults
    atomicwrites              1.4.0                      py_0    defaults
    attrs                     21.4.0             pyhd3eb1b0_0    defaults
    automat                   20.2.0                     py_0    defaults
    autopep8                  1.6.0              pyhd3eb1b0_1    defaults
    babel                     2.9.1              pyhd3eb1b0_0    defaults
    backcall                  0.2.0              pyhd3eb1b0_0    defaults
    backports                 1.1                pyhd3eb1b0_0    defaults
    backports.functools_lru_cache 1.6.4              pyhd3eb1b0_0    defaults
    backports.tempfile        1.0                pyhd3eb1b0_1    defaults
    backports.weakref         1.0.post1                  py_1    defaults
    bcrypt                    3.2.0            py39h2bbff1b_1    defaults
    beautifulsoup4            4.11.1           py39haa95532_0    defaults
    binaryornot               0.4.4              pyhd3eb1b0_1    defaults
    bitarray                  2.5.1            py39h2bbff1b_0    defaults
    bkcharts                  0.2              py39haa95532_1    defaults
    black                     22.6.0           py39haa95532_0    defaults
    blas                      1.0                         mkl    defaults
    bleach                    4.1.0              pyhd3eb1b0_0    defaults
    blosc                     1.21.0               h19a0ad4_1    defaults
    bokeh                     2.4.3            py39haa95532_0    defaults
    boto3                     1.24.28          py39haa95532_0    defaults
    botocore                  1.27.28          py39haa95532_0    defaults
    bottleneck                1.3.5            py39h080aedc_0    defaults
    brotli                    1.0.9                h2bbff1b_7    defaults
    brotli-bin                1.0.9                h2bbff1b_7    defaults
    brotlipy                  0.7.0           py39h2bbff1b_1003    defaults
    bzip2                     1.0.8                he774522_0    defaults
    ca-certificates           2022.07.19           haa95532_0    defaults
    certifi                   2022.9.14        py39haa95532_0    defaults
    cffi                      1.15.1           py39h2bbff1b_0    defaults
    cfitsio                   3.470                h2bbff1b_7    defaults
    chardet                   4.0.0           py39haa95532_1003    defaults
    charls                    2.2.0                h6c2663c_0    defaults
    charset-normalizer        2.0.4              pyhd3eb1b0_0    defaults
    click                     8.0.4            py39haa95532_0    defaults
    cloudpickle               2.0.0              pyhd3eb1b0_0    defaults
    clyent                    1.2.2            py39haa95532_1    defaults
    colorama                  0.4.5            py39haa95532_0    defaults
    colorcet                  3.0.0            py39haa95532_0    defaults
    comtypes                  1.1.10          py39haa95532_1002    defaults
    conda                     22.9.0           py39haa95532_0    defaults
    conda-build               3.22.0           py39haa95532_0    defaults
    conda-content-trust       0.1.3            py39haa95532_0    defaults
    conda-env                 2.6.0                haa95532_1    defaults
    conda-pack                0.6.0              pyhd3eb1b0_0    defaults
    conda-package-handling    1.9.0            py39h8cc25b3_0    defaults
    conda-repo-cli            1.0.20           py39haa95532_0    defaults
    conda-token               0.4.0              pyhd3eb1b0_0    defaults
    conda-verify              3.4.2                      py_1    defaults
    console_shortcut          0.1.1                         4    defaults
    constantly                15.1.0             pyh2b92418_0    defaults
    cookiecutter              1.7.3              pyhd3eb1b0_0    defaults
    cryptography              37.0.1           py39h21b164f_0    defaults
    cssselect                 1.1.0              pyhd3eb1b0_0    defaults
    curl                      7.84.0               h2bbff1b_0    defaults
    cycler                    0.11.0             pyhd3eb1b0_0    defaults
    cython                    0.29.32          py39hd77b12b_0    defaults
    cytoolz                   0.11.0           py39h2bbff1b_0    defaults
    daal4py                   2021.6.0         py39h757b272_1    defaults
    dal                       2021.6.0           h59b6b97_874    defaults
    dask                      2022.7.0         py39haa95532_0    defaults
    dask-core                 2022.7.0         py39haa95532_0    defaults
    dataclasses               0.8                pyh6d0b6a4_7    defaults
    datashader                0.14.1           py39haa95532_0    defaults
    datashape                 0.5.4            py39haa95532_1    defaults
    debugpy                   1.5.1            py39hd77b12b_0    defaults
    decorator                 5.1.1              pyhd3eb1b0_0    defaults
    defusedxml                0.7.1              pyhd3eb1b0_0    defaults
    diff-match-patch          20200713           pyhd3eb1b0_0    defaults
    dill                      0.3.4              pyhd3eb1b0_0    defaults
    distributed               2022.7.0         py39haa95532_0    defaults
    docutils                  0.18.1           py39haa95532_3    defaults
    entrypoints               0.4              py39haa95532_0    defaults
    et_xmlfile                1.1.0            py39haa95532_0    defaults
    fftw                      3.3.9                h2bbff1b_1    defaults
    filelock                  3.6.0              pyhd3eb1b0_0    defaults
    flake8                    4.0.1              pyhd3eb1b0_1    defaults
    flask                     1.1.2              pyhd3eb1b0_0    defaults
    fonttools                 4.25.0             pyhd3eb1b0_0    defaults
    freetype                  2.10.4               hd328e21_0    defaults
    fsspec                    2022.7.1         py39haa95532_0    defaults
    future                    0.18.2           py39haa95532_1    defaults
    gensim                    4.1.2            py39hd77b12b_0    defaults
    giflib                    5.2.1                h62dcd97_0    defaults
    glob2                     0.7                pyhd3eb1b0_0    defaults
    greenlet                  1.1.1            py39hd77b12b_0    defaults
    h5py                      3.7.0            py39h3de5c98_0    defaults
    hdf5                      1.10.6               h1756f20_1    defaults
    heapdict                  1.0.1              pyhd3eb1b0_0    defaults
    holoviews                 1.15.0           py39haa95532_0    defaults
    hvplot                    0.8.0            py39haa95532_0    defaults
    hyperlink                 21.0.0             pyhd3eb1b0_0    defaults
    icc_rt                    2022.1.0             h6049295_2    defaults
    icu                       58.2                 ha925a31_3    defaults
    idna                      3.3                pyhd3eb1b0_0    defaults
    imagecodecs               2021.8.26        py39hc0a7faf_1    defaults
    imageio                   2.19.3           py39haa95532_0    defaults
    imagesize                 1.4.1            py39haa95532_0    defaults
    importlib-metadata        4.11.3           py39haa95532_0    defaults
    importlib_metadata        4.11.3               hd3eb1b0_0    defaults
    incremental               21.3.0             pyhd3eb1b0_0    defaults
    inflection                0.5.1            py39haa95532_0    defaults
    iniconfig                 1.1.1              pyhd3eb1b0_0    defaults
    intake                    0.6.5              pyhd3eb1b0_0    defaults
    intel-openmp              2021.4.0          haa95532_3556    defaults
    intervaltree              3.1.0              pyhd3eb1b0_0    defaults
    ipykernel                 6.15.2           py39haa95532_0    defaults
    ipython                   7.31.1           py39haa95532_1    defaults
    ipython_genutils          0.2.0              pyhd3eb1b0_1    defaults
    ipywidgets                7.6.5              pyhd3eb1b0_1    defaults
    isort                     5.9.3              pyhd3eb1b0_0    defaults
    itemadapter               0.3.0              pyhd3eb1b0_0    defaults
    itemloaders               1.0.4              pyhd3eb1b0_1    defaults
    itsdangerous              2.0.1              pyhd3eb1b0_0    defaults
    jdcal                     1.4.1              pyhd3eb1b0_0    defaults
    jedi                      0.18.1           py39haa95532_1    defaults
    jellyfish                 0.9.0            py39h2bbff1b_0    defaults
    jinja2                    2.11.3             pyhd3eb1b0_0    defaults
    jinja2-time               0.2.0              pyhd3eb1b0_3    defaults
    jmespath                  0.10.0             pyhd3eb1b0_0    defaults
    joblib                    1.1.0              pyhd3eb1b0_0    defaults
    jpeg                      9e                   h2bbff1b_0    defaults
    jq                        1.6                  haa95532_1    defaults
    json5                     0.9.6              pyhd3eb1b0_0    defaults
    jsonschema                4.16.0           py39haa95532_0    defaults
    jupyter                   1.0.0            py39haa95532_8    defaults
    jupyter_client            7.3.4            py39haa95532_0    defaults
    jupyter_console           6.4.3              pyhd3eb1b0_0    defaults
    jupyter_core              4.11.1           py39haa95532_0    defaults
    jupyter_server            1.18.1           py39haa95532_0    defaults
    jupyterlab                3.4.4            py39haa95532_0    defaults
    jupyterlab_pygments       0.1.2                      py_0    defaults
    jupyterlab_server         2.10.3             pyhd3eb1b0_1    defaults
    jupyterlab_widgets        1.0.0              pyhd3eb1b0_1    defaults
    keyring                   23.4.0           py39haa95532_0    defaults
    kiwisolver                1.4.2            py39hd77b12b_0    defaults
    lazy-object-proxy         1.6.0            py39h2bbff1b_0    defaults
    lcms2                     2.12                 h83e58a3_0    defaults
    lerc                      3.0                  hd77b12b_0    defaults
    libaec                    1.0.4                h33f27b4_1    defaults
    libarchive                3.6.1                hebabd0d_0    defaults
    libbrotlicommon           1.0.9                h2bbff1b_7    defaults
    libbrotlidec              1.0.9                h2bbff1b_7    defaults
    libbrotlienc              1.0.9                h2bbff1b_7    defaults
    libcurl                   7.84.0               h86230a5_0    defaults
    libdeflate                1.8                  h2bbff1b_5    defaults
    libiconv                  1.16                 h2bbff1b_2    defaults
    liblief                   0.11.5               hd77b12b_1    defaults
    libpng                    1.6.37               h2a8f88b_0    defaults
    libsodium                 1.0.18               h62dcd97_0    defaults
    libspatialindex           1.9.3                h6c2663c_0    defaults
    libssh2                   1.10.0               hcd4344a_0    defaults
    libtiff                   4.4.0                h8a3f274_0    defaults
    libwebp                   1.2.2                h2bbff1b_0    defaults
    libxml2                   2.9.14               h0ad7f3c_0    defaults
    libxslt                   1.1.35               h2bbff1b_0    defaults
    libzopfli                 1.0.3                ha925a31_0    defaults
    llvmlite                  0.38.0           py39h23ce68f_0    defaults
    locket                    1.0.0            py39haa95532_0    defaults
    lxml                      4.9.1            py39h1985fb9_0    defaults
    lz4                       3.1.3            py39h2bbff1b_0    defaults
    lz4-c                     1.9.3                h2bbff1b_1    defaults
    lzo                       2.10                 he774522_2    defaults
    m2-msys2-runtime          2.5.0.17080.65c939c               3    defaults
    m2-patch                  2.7.5                         2    defaults
    m2w64-libwinpthread-git   5.0.0.4634.697f757               2    defaults
    markdown                  3.3.4            py39haa95532_0    defaults
    markupsafe                2.0.1            py39h2bbff1b_0    defaults
    matplotlib                3.5.2            py39haa95532_0    defaults
    matplotlib-base           3.5.2            py39hd77b12b_0    defaults
    matplotlib-inline         0.1.6            py39haa95532_0    defaults
    mccabe                    0.6.1            py39haa95532_2    defaults
    menuinst                  1.4.19           py39h59b6b97_0    defaults
    mistune                   0.8.4           py39h2bbff1b_1000    defaults
    mkl                       2021.4.0           haa95532_640    defaults
    mkl-service               2.4.0            py39h2bbff1b_0    defaults
    mkl_fft                   1.3.1            py39h277e83a_0    defaults
    mkl_random                1.2.2            py39hf11a4ad_0    defaults
    mock                      4.0.3              pyhd3eb1b0_0    defaults
    mpmath                    1.2.1            py39haa95532_0    defaults
    msgpack-python            1.0.3            py39h59b6b97_0    defaults
    msys2-conda-epoch         20160418                      1    defaults
    multipledispatch          0.6.0            py39haa95532_0    defaults
    munkres                   1.1.4                      py_0    defaults
    mypy_extensions           0.4.3            py39haa95532_1    defaults
    navigator-updater         0.3.0            py39haa95532_0    defaults
    nbclassic                 0.3.5              pyhd3eb1b0_0    defaults
    nbclient                  0.5.13           py39haa95532_0    defaults
    nbconvert                 6.4.4            py39haa95532_0    defaults
    nbformat                  5.5.0            py39haa95532_0    defaults
    nest-asyncio              1.5.5            py39haa95532_0    defaults
    networkx                  2.8.4            py39haa95532_0    defaults
    nltk                      3.7                pyhd3eb1b0_0    defaults
    nose                      1.3.7           pyhd3eb1b0_1008    defaults
    notebook                  6.4.12           py39haa95532_0    defaults
    numba                     0.55.1           py39hf11a4ad_0    defaults
    numexpr                   2.8.3            py39hb80d3ca_0    defaults
    numpy                     1.21.5           py39h7a0a035_3    defaults
    numpy-base                1.21.5           py39hca35cd5_3    defaults
    numpydoc                  1.4.0            py39haa95532_0    defaults
    olefile                   0.46               pyhd3eb1b0_0    defaults
    openjpeg                  2.4.0                h4fc8c34_0    defaults
    openpyxl                  3.0.10           py39h2bbff1b_0    defaults
    openssl                   1.1.1q               h2bbff1b_0    defaults
    packaging                 21.3               pyhd3eb1b0_0    defaults
    pandas                    1.4.4            py39hd77b12b_0    defaults
    pandocfilters             1.5.0              pyhd3eb1b0_0    defaults
    panel                     0.13.1           py39haa95532_0    defaults
    param                     1.12.0             pyhd3eb1b0_0    defaults
    paramiko                  2.8.1              pyhd3eb1b0_0    defaults
    parsel                    1.6.0            py39haa95532_0    defaults
    parso                     0.8.3              pyhd3eb1b0_0    defaults
    partd                     1.2.0              pyhd3eb1b0_1    defaults
    pathlib                   1.0.1              pyhd3eb1b0_1    defaults
    pathspec                  0.9.0            py39haa95532_0    defaults
    patsy                     0.5.2            py39haa95532_1    defaults
    pep8                      1.7.1            py39haa95532_1    defaults
    pexpect                   4.8.0              pyhd3eb1b0_3    defaults
    pickleshare               0.7.5           pyhd3eb1b0_1003    defaults
    pillow                    9.2.0            py39hdc2b20a_1    defaults
    pip                       22.2.2           py39haa95532_0    defaults
    pkginfo                   1.8.2              pyhd3eb1b0_0    defaults
    platformdirs              2.5.2            py39haa95532_0    defaults
    plotly                    5.9.0            py39haa95532_0    defaults
    pluggy                    1.0.0            py39haa95532_1    defaults
    powershell_shortcut       0.0.1                         3    defaults
    poyo                      0.5.0              pyhd3eb1b0_0    defaults
    prometheus_client         0.14.1           py39haa95532_0    defaults
    prompt-toolkit            3.0.20             pyhd3eb1b0_0    defaults
    prompt_toolkit            3.0.20               hd3eb1b0_0    defaults
    protego                   0.1.16                     py_0    defaults
    psutil                    5.9.0            py39h2bbff1b_0    defaults
    ptyprocess                0.7.0              pyhd3eb1b0_2    defaults
    py                        1.11.0             pyhd3eb1b0_0    defaults
    py-lief                   0.11.5           py39hd77b12b_1    defaults
    pyasn1                    0.4.8              pyhd3eb1b0_0    defaults
    pyasn1-modules            0.2.8                      py_0    defaults
    pycodestyle               2.8.0              pyhd3eb1b0_0    defaults
    pycosat                   0.6.3            py39h2bbff1b_0    defaults
    pycparser                 2.21               pyhd3eb1b0_0    defaults
    pyct                      0.4.8            py39haa95532_1    defaults
    pycurl                    7.45.1           py39hcd4344a_0    defaults
    pydispatcher              2.0.5            py39haa95532_2    defaults
    pydocstyle                6.1.1              pyhd3eb1b0_0    defaults
    pyerfa                    2.0.0            py39h2bbff1b_0    defaults
    pyflakes                  2.4.0              pyhd3eb1b0_0    defaults
    pygments                  2.11.2             pyhd3eb1b0_0    defaults
    pyhamcrest                2.0.2              pyhd3eb1b0_2    defaults
    pyjwt                     2.4.0            py39haa95532_0    defaults
    pylint                    2.14.5           py39haa95532_0    defaults
    pyls-spyder               0.4.0              pyhd3eb1b0_0    defaults
    pynacl                    1.5.0            py39h8cc25b3_0    defaults
    pyodbc                    4.0.34           py39hd77b12b_0    defaults
    pyopenssl                 22.0.0             pyhd3eb1b0_0    defaults
    pyparsing                 3.0.9            py39haa95532_0    defaults
    pyqt                      5.9.2            py39hd77b12b_6    defaults
    pyrsistent                0.18.0           py39h196d8e1_0    defaults
    pysocks                   1.7.1            py39haa95532_0    defaults
    pytables                  3.6.1            py39h56d22b6_1    defaults
    pytest                    7.1.2            py39haa95532_0    defaults
    python                    3.9.13               h6244533_1    defaults
    python-dateutil           2.8.2              pyhd3eb1b0_0    defaults
    python-fastjsonschema     2.16.2           py39haa95532_0    defaults
    python-libarchive-c       2.9                pyhd3eb1b0_1    defaults
    python-lsp-black          1.0.0              pyhd3eb1b0_0    defaults
    python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0    defaults
    python-lsp-server         1.3.3              pyhd3eb1b0_0    defaults
    python-slugify            5.0.2              pyhd3eb1b0_0    defaults
    python-snappy             0.6.0            py39hd77b12b_3    defaults
    pytz                      2022.1           py39haa95532_0    defaults
    pyviz_comms               2.0.2              pyhd3eb1b0_0    defaults
    pywavelets                1.3.0            py39h2bbff1b_0    defaults
    pywin32                   302              py39h2bbff1b_2    defaults
    pywin32-ctypes            0.2.0           py39haa95532_1000    defaults
    pywinpty                  2.0.2            py39h5da7b33_0    defaults
    pyyaml                    6.0              py39h2bbff1b_1    defaults
    pyzmq                     23.2.0           py39hd77b12b_0    defaults
    qdarkstyle                3.0.2              pyhd3eb1b0_0    defaults
    qstylizer                 0.1.10             pyhd3eb1b0_0    defaults
    qt                        5.9.7            vc14h73c81de_0    defaults
    qtawesome                 1.0.3              pyhd3eb1b0_0    defaults
    qtconsole                 5.2.2              pyhd3eb1b0_0    defaults
    qtpy                      2.2.0            py39haa95532_0    defaults
    queuelib                  1.5.0            py39haa95532_0    defaults
    regex                     2022.7.9         py39h2bbff1b_0    defaults
    requests                  2.28.1           py39haa95532_0    defaults
    requests-file             1.5.1              pyhd3eb1b0_0    defaults
    rope                      0.22.0             pyhd3eb1b0_0    defaults
    rtree                     0.9.7            py39h2eaa2aa_1    defaults
    ruamel_yaml               0.15.100         py39h2bbff1b_0    defaults
    s3transfer                0.6.0            py39haa95532_0    defaults
    scikit-image              0.19.2           py39hf11a4ad_0    defaults
    scikit-learn              1.0.2            py39hf11a4ad_1    defaults
    scikit-learn-intelex      2021.6.0         py39haa95532_0    defaults
    scipy                     1.9.1            py39he11b74f_0    defaults
    scrapy                    2.6.2            py39haa95532_0    defaults
    seaborn                   0.11.2             pyhd3eb1b0_0    defaults
    send2trash                1.8.0              pyhd3eb1b0_1    defaults
    service_identity          18.1.0             pyhd3eb1b0_1    defaults
    setuptools                63.4.1           py39haa95532_0    defaults
    sip                       4.19.13          py39hd77b12b_0    defaults
    six                       1.16.0             pyhd3eb1b0_1    defaults
    smart_open                5.2.1            py39haa95532_0    defaults
    snappy                    1.1.9                h6c2663c_0    defaults
    sniffio                   1.2.0            py39haa95532_1    defaults
    snowballstemmer           2.2.0              pyhd3eb1b0_0    defaults
    sortedcollections         2.1.0              pyhd3eb1b0_0    defaults
    sortedcontainers          2.4.0              pyhd3eb1b0_0    defaults
    soupsieve                 2.3.1              pyhd3eb1b0_0    defaults
    sphinx                    5.0.2            py39haa95532_0    defaults
    sphinxcontrib-applehelp   1.0.2              pyhd3eb1b0_0    defaults
    sphinxcontrib-devhelp     1.0.2              pyhd3eb1b0_0    defaults
    sphinxcontrib-htmlhelp    2.0.0              pyhd3eb1b0_0    defaults
    sphinxcontrib-jsmath      1.0.1              pyhd3eb1b0_0    defaults
    sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0    defaults
    sphinxcontrib-serializinghtml 1.1.5              pyhd3eb1b0_0    defaults
    spyder                    5.2.2            py39haa95532_1    defaults
    spyder-kernels            2.2.1            py39haa95532_0    defaults
    sqlalchemy                1.4.39           py39h2bbff1b_0    defaults
    sqlite                    3.39.3               h2bbff1b_0    defaults
    statsmodels               0.13.2           py39h2bbff1b_0    defaults
    sympy                     1.10.1           py39haa95532_0    defaults
    tabulate                  0.8.10           py39haa95532_0    defaults
    tbb                       2021.6.0             h59b6b97_0    defaults
    tbb4py                    2021.6.0         py39h59b6b97_0    defaults
    tblib                     1.7.0              pyhd3eb1b0_0    defaults
    tenacity                  8.0.1            py39haa95532_1    defaults
    terminado                 0.13.1           py39haa95532_0    defaults
    testpath                  0.6.0            py39haa95532_0    defaults
    text-unidecode            1.3                pyhd3eb1b0_0    defaults
    textdistance              4.2.1              pyhd3eb1b0_0    defaults
    threadpoolctl             2.2.0              pyh0d69192_0    defaults
    three-merge               0.1.1              pyhd3eb1b0_0    defaults
    tifffile                  2021.7.2           pyhd3eb1b0_2    defaults
    tinycss                   0.4             pyhd3eb1b0_1002    defaults
    tk                        8.6.12               h2bbff1b_0    defaults
    tldextract                3.2.0              pyhd3eb1b0_0    defaults
    toml                      0.10.2             pyhd3eb1b0_0    defaults
    tomli                     2.0.1            py39haa95532_0    defaults
    tomlkit                   0.11.1           py39haa95532_0    defaults
    toolz                     0.11.2             pyhd3eb1b0_0    defaults
    tornado                   6.1              py39h2bbff1b_0    defaults
    tqdm                      4.64.1           py39haa95532_0    defaults
    traitlets                 5.1.1              pyhd3eb1b0_0    defaults
    twisted                   22.2.0           py39h2bbff1b_1    defaults
    twisted-iocpsupport       1.0.2            py39h2bbff1b_0    defaults
    typing-extensions         4.3.0            py39haa95532_0    defaults
    typing_extensions         4.3.0            py39haa95532_0    defaults
    tzdata                    2022c                h04d1e81_0    defaults
    ujson                     5.4.0            py39hd77b12b_0    defaults
    unidecode                 1.2.0              pyhd3eb1b0_0    defaults
    urllib3                   1.26.11          py39haa95532_0    defaults
    vc                        14.2                 h21ff451_1    defaults
    vs2015_runtime            14.27.29016          h5e58377_2    defaults
    w3lib                     1.21.0             pyhd3eb1b0_0    defaults
    watchdog                  2.1.6            py39haa95532_0    defaults
    wcwidth                   0.2.5              pyhd3eb1b0_0    defaults
    webencodings              0.5.1            py39haa95532_1    defaults
    websocket-client          0.58.0           py39haa95532_4    defaults
    werkzeug                  2.0.3              pyhd3eb1b0_0    defaults
    wheel                     0.37.1             pyhd3eb1b0_0    defaults
    widgetsnbextension        3.5.2            py39haa95532_0    defaults
    win_inet_pton             1.1.0            py39haa95532_0    defaults
    win_unicode_console       0.5              py39haa95532_0    defaults
    wincertstore              0.2              py39haa95532_2    defaults
    winpty                    0.4.3                         4    defaults
    wrapt                     1.14.1           py39h2bbff1b_0    defaults
    xarray                    0.20.1             pyhd3eb1b0_1    defaults
    xlrd                      2.0.1              pyhd3eb1b0_0    defaults
    xlsxwriter                3.0.3              pyhd3eb1b0_0    defaults
    xlwings                   0.27.15          py39haa95532_0    defaults
    xz                        5.2.6                h8cc25b3_0    defaults
    yaml                      0.2.5                he774522_0    defaults
    yapf                      0.31.0             pyhd3eb1b0_0    defaults
    zeromq                    4.3.4                hd77b12b_0    defaults
    zfp                       0.5.5                hd77b12b_6    defaults
    zict                      2.1.0            py39haa95532_0    defaults
    zipp                      3.8.0            py39haa95532_0    defaults
    zlib                      1.2.12               h8cc25b3_3    defaults
    zope                      1.0              py39haa95532_1    defaults
    zope.interface            5.4.0            py39h2bbff1b_0    defaults
    zstd                      1.5.2                h19a0ad4_0    defaults
    (base) PS C:\Users\zhuzj5>
    
    
    

    conda list (my_env) 新建环境的安装包

    conda activate my_env conda list

    (my_env) PS C:\Users\zhuzj5> conda list
    # packages in environment at C:\Users\zhuzj5\anaconda3\envs\my_env:
    #
    # Name                    Version                   Build  Channel
    (my_env) PS C:\Users\zhuzj5>
    

    conda list -n my_env 指定环境查看包

    conda list -n my_env

    conda list -n my_env numpy 指定环境搜索包

    conda list -n my_env numpy

    conda install 在conda环境中安装包

    conda install 命令格式

    conda install [-n env_name | -p path] [-c channel_address] [packages]
    

    conda activate my_env conda install python=3.10.8

    conda install python=3.10.8

    在当前环境中安装 python3.10.8 版本

    conda install python=3.10.8

    
    
    

    conda install -n my_env python=3.10.8 指定环境安装包

    conda install -n my_env python=3.10.8

    conda remove 移除环境中的包

    conda remove 格式

    conda remove [-n env_name | -p path] [packages] [--all]
    

    conda remove -n my_env numpy 移除指定包

    conda remove -n my_env numpy

    conda remove -n my_env –all 移除所有包(即整个conda环境)

    conda 重命名环境

    conda 没有提供重命名环境的命令,我们只能先克隆一份原来的环境,然后再删除原来的环境, 具体操作如下(例如将环境 a_env 重命名成 b_env ):

    conda create -n b_env --clone a_env
    conda remove -n a_env --all
    
    
    

    conda search 搜索包

    conda search 格式

    conda search [-c channel_address] [-f] [packages]
    

    conda search -f python 搜索python

    conda search -f python

    
    (base) PS C:\Users\zhuzj5> conda search -f python
    Loading channels: done
    # Name                       Version           Build  Channel
    python                        2.7.13     h1b6d89f_16  pkgs/main
    python                        2.7.13     h9912b81_15  pkgs/main
    python                        2.7.13     hb034564_12  pkgs/main
    ..............
    python                        3.8.15      h6244533_1  pkgs/main
    python                        3.8.15      h6244533_2  pkgs/main
    python                        3.8.15      h82bb817_0  pkgs/main
    python                        3.8.16      h6244533_2  pkgs/main
    python                         3.9.0      h6244533_2  pkgs/main
    python                         3.9.0      h8aef87e_1  pkgs/main
    python                         3.9.1      h6244533_2  pkgs/main
    python                         3.9.2      h6244533_0  pkgs/main
    python                         3.9.4      h6244533_0  pkgs/main
    python                         3.9.5      h6244533_3  pkgs/main
    python                         3.9.6      h6244533_0  pkgs/main
    python                         3.9.6      h6244533_1  pkgs/main
    python                         3.9.7      h6244533_1  pkgs/main
    python                        3.9.11      h6244533_1  pkgs/main
    python                        3.9.11      h6244533_2  pkgs/main
    python                        3.9.12      h6244533_0  pkgs/main
    python                        3.9.13      h6244533_1  pkgs/main
    python                        3.9.13      h6244533_2  pkgs/main
    python                        3.9.15      h6244533_0  pkgs/main
    python                        3.9.15      h6244533_1  pkgs/main
    python                        3.9.15      h6244533_2  pkgs/main
    python                        3.9.16      h6244533_0  pkgs/main
    python                        3.10.0      h96c0403_3  pkgs/main
    python                        3.10.0      hbb2ffb3_0  pkgs/main
    python                        3.10.0      hbb2ffb3_1  pkgs/main
    python                        3.10.0      hbb2ffb3_2  pkgs/main
    python                        3.10.3      hbb2ffb3_5  pkgs/main
    python                        3.10.4      hbb2ffb3_0  pkgs/main
    python                        3.10.6      hbb2ffb3_0  pkgs/main
    python                        3.10.6      hbb2ffb3_1  pkgs/main
    python                        3.10.8      h966fe2a_1  pkgs/main
    python                        3.10.8      hbb2ffb3_0  pkgs/main
    python                        3.10.9      h966fe2a_0  pkgs/main
    python                        3.11.0      h966fe2a_2  pkgs/main
    (base) PS C:\Users\zhuzj5>
    

    conda update 用来将一系列的包升级到最新版本

    conda update 命令格式

    conda update [-n env_name | -p path] [packages] [--all]
    
    
    

    conda update -n my_env numpy 更新numpy包

    conda update -n my_env numpy
    

    conda update -n zenv python=3.10.8

    conda update -n zenv python=3.10.8 提示使用 conda install python=3.10.8 代码

    (zenv) PS C:\Users\zhuzj5> conda update -n zenv python=3.10.8
    
    CondaError: Invalid spec for 'conda update': python=3.10.8
    Use 'conda install' instead
    
    

    conda update conda 更新 conda 自身

    conda update conda

    
    

    conda update anaconda 更新anaconda自身

    conda update anaconda

    
    

    conda config 配置信息

    用来配置 conda 的频道,相关信息会存储在 \Users\你的用户名.condarc 文件中

    conda config 格式

    
    conda config --add channels [channel]
    
    

    conda config –add channels conda-forge

    添加 conda-forge 这个channel 频道 搜搜的url conda config –add channels conda-forge

    (base) PS C:\Users\zhuzj5> conda config --add channels conda-forge
    (base) PS C:\Users\zhuzj5>
    
    

    conda config –set show_channel_urls yes 配置多频道

    conda config –set show_channel_urls yes

    生成 路径文件 C:\Users\zhuzj5.condarc

    
    (base) PS C:\Users\zhuzj5> conda config --set show_channel_urls yes
    (base) PS C:\Users\zhuzj5>
    
    

    C:\Users\zhuzj5.condarc 文件内容

    show_channel_urls: true
    channels:
      - conda-forge
      - defaults
    
    
    

    C:\Users\zhuzj5.condarc 清华镜像配置文件内容

    清华镜像的 C:\Users\zhuzj5.condarc 文件内容

    channels:
      - defaults
    show_channel_urls: true
    default_channels:
      - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
      - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
      - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
    custom_channels:
      conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      
    
    

    conda clean -i 清除索引缓存

    conda clean -i 修改 C:\Users\zhuzj5.condarc 配置文件后执行用来清缓存

    
    (base) PS C:\Users\zhuzj5> conda clean -i
    Will remove 1 index cache(s).
    Proceed ([y]/n)? y
    
    (base) PS C:\Users\zhuzj5>
    
    
    

    conda config –get channels 查看添加的频道

    conda config –get channels

    (base) PS C:\Users\zhuzj5> conda config --get channels
    --add channels 'defaults'   # lowest priority
    (base) PS C:\Users\zhuzj5>
    
    

    conda config –show-sources 查看镜像

    conda config –show-sources

    (base) PS C:\Users\zhuzj5> conda config --show-sources
    ==> C:\Users\zhuzj5\.condarc <==
    channels:
      - defaults
    custom_channels:
      conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
    default_channels:
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
    show_channel_urls: True
    
    (base) PS C:\Users\zhuzj5>
    
    

    conda config –show 查看配置信息

    conda config –show

    
    (base) PS C:\Users\zhuzj5>  conda config --show
    add_anaconda_token: True
    add_pip_as_python_dependency: True
    aggressive_update_packages:
      - ca-certificates
      - certifi
      - openssl
    allow_conda_downgrades: False
    allow_cycles: True
    allow_non_channel_urls: False
    allow_softlinks: False
    allowlist_channels: []
    always_copy: False
    always_softlink: False
    always_yes: None
    anaconda_upload: None
    auto_activate_base: True
    auto_stack: 0
    auto_update_conda: True
    bld_path:
    changeps1: True
    channel_alias: https://conda.anaconda.org
    channel_priority: flexible
    channels:
      - defaults
    client_ssl_cert: None
    client_ssl_cert_key: None
    clobber: False
    conda_build: {}
    create_default_packages: []
    croot: C:\Users\zhuzj5\anaconda3\conda-bld
    custom_channels:
      anaconda/pkgs/main: https://mirrors.tuna.tsinghua.edu.cn
      anaconda/pkgs/r: https://mirrors.tuna.tsinghua.edu.cn
      anaconda/pkgs/msys2: https://mirrors.tuna.tsinghua.edu.cn
      conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
      simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
    custom_multichannels:
      defaults:
        - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
        - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
        - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
      local:
    debug: False
    default_channels:
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
    default_python: 3.9
    default_threads: None
    deps_modifier: not_set
    dev: False
    disallowed_packages: []
    download_only: False
    dry_run: False
    enable_private_envs: False
    env_prompt: ({default_env})
    envs_dirs:
      - C:\Users\zhuzj5\anaconda3\envs
      - C:\Users\zhuzj5\.conda\envs
      - C:\Users\zhuzj5\AppData\Local\conda\conda\envs
    error_upload_url: https://conda.io/conda-post/unexpected-error
    execute_threads: 1
    experimental_solver: classic
    extra_safety_checks: False
    force: False
    force_32bit: False
    force_reinstall: False
    force_remove: False
    ignore_pinned: False
    json: False
    local_repodata_ttl: 1
    migrated_channel_aliases: []
    migrated_custom_channels: {}
    non_admin_enabled: True
    notify_outdated_conda: True
    number_channel_notices: 5
    offline: False
    override_channels_enabled: True
    path_conflict: clobber
    pinned_packages: []
    pip_interop_enabled: False
    pkgs_dirs:
      - C:\Users\zhuzj5\anaconda3\pkgs
      - C:\Users\zhuzj5\.conda\pkgs
      - C:\Users\zhuzj5\AppData\Local\conda\conda\pkgs
    proxy_servers: {}
    quiet: False
    remote_backoff_factor: 1
    remote_connect_timeout_secs: 9.15
    remote_max_retries: 3
    remote_read_timeout_secs: 60.0
    repodata_fns:
      - current_repodata.json
      - repodata.json
    repodata_threads: None
    report_errors: None
    restore_free_channel: False
    rollback_enabled: True
    root_prefix: C:\Users\zhuzj5\anaconda3
    safety_checks: warn
    sat_solver: pycosat
    separate_format_cache: False
    shortcuts: True
    show_channel_urls: True
    signing_metadata_url_base: None
    solver_ignore_timestamps: False
    ssl_verify: True
    subdir: win-64
    subdirs:
      - win-64
      - noarch
    target_prefix_override:
    track_features: []
    unsatisfiable_hints: True
    unsatisfiable_hints_check_depth: 2
    update_modifier: update_specs
    use_index_cache: False
    use_local: False
    use_only_tar_bz2: False
    verbosity: 0
    verify_threads: 1
    
    

    常见的安装包

    conda install python=3.10.8

    conda install pytorch

    conda install numpy