ยง2024-12-14

Starting conda

  1. Creating environments

conda create -n <env-name>

conda create -n myenvironment python numpy pandas

For example:

alexlai@ApiServer:~$ ~/anaconda3/bin/conda create -n PY-3.10.15-R-4.4.2  python=3.10.15 r=4.4.2
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - r=4.4.2*

Current channels:

  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

  1. Check Available R Versions on conda-forge You can try specifying the conda-forge channel, which often has a wider range of versions for both Python and R packages.

To create the environment with R from conda-forge, try this command:

alexlai@ApiServer:~$ ~/anaconda3/bin/conda create -n PY-3.10.15-R-4.4.2 python=3.10.15 r=4.4.2 -c conda-forge
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - r=4.4.2*

Current channels:

  - https://conda.anaconda.org/conda-forge
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
alexlai@ApiServer:~$ ~/anaconda3/bin/conda search -c conda-forge r
Loading channels: done
# Name                       Version           Build  Channel             
r                              3.3.1        r3.3.1_0  pkgs/r              
r                              3.3.1        r3.3.1_1  pkgs/r              
r                              3.3.2        r3.3.2_0  conda-forge         
r                              3.3.2        r3.3.2_0  pkgs/r              
r                              3.4.1        r3.4.1_0  conda-forge         
r                              3.4.1        r3.4.1_0  pkgs/r              
r                              3.4.2      h65d9972_0  pkgs/r              
r                              3.4.3        mro343_0  pkgs/r              
r                              3.4.3          r343_0  pkgs/r              
r                              3.5.0        mro350_0  pkgs/r              
r                              3.5.0          r350_0  pkgs/r              
r                              3.5.1        mro351_0  pkgs/r              
r                              3.5.1          r351_0  conda-forge         
r                              3.5.1          r351_0  pkgs/r              
r                              3.5.1       r351_1000  conda-forge         
r                              3.5.1        r35_1002  conda-forge         
r                              3.5.1        r35_1003  conda-forge         
r                              3.6.0           r36_0  pkgs/r              
r                                3.6        r36_1002  conda-forge         
r                                3.6        r36_1003  conda-forge         
r                                3.6        r36_1004  conda-forge         
r                              3.6.0           r43_0  pkgs/r              
r                                4.0        r40_1004  conda-forge         
r                                4.0 r40hd8ed1ab_1004  conda-forge         
r                                4.1 r41hd8ed1ab_1004  conda-forge         
r                                4.1 r41hd8ed1ab_1005  conda-forge         
r                                4.1 r41hd8ed1ab_1006  conda-forge         
r                                4.2 r42hd8ed1ab_1006  conda-forge         
r                                4.2 r42hd8ed1ab_1007  conda-forge         
r                                4.3 r43hd8ed1ab_1007  conda-forge         
r                                4.3 r43hd8ed1ab_1008  conda-forge         
r                              4.3.1           r43_0  pkgs/r              
r                                4.4 r44hd8ed1ab_1008  conda-forge     
alexlai@ApiServer:~$ ~/anaconda3/bin/conda create -n PY-3.10.15-R-4.4 python=3.10.15 r=4.4 -c conda-forge
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/alexlai/anaconda3/envs/PY-3.10.15-R-4.4

  added / updated specs:
    - python=3.10.15
    - r=4.4


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _libgcc_mutex-0.1          |      conda_forge           3 KB  conda-forge
    _openmp_mutex-4.5          |            2_gnu          23 KB  conda-forge
    _r-mutex-1.0.1             |      anacondar_1           3 KB  conda-forge
    binutils_impl_linux-64-2.43|       h4bf12b8_2         5.4 MB  conda-forge
    bwidget-1.10.1             |       ha770c72_0         126 KB  conda-forge
    bzip2-1.0.8                |       h4bc722e_7         247 KB  conda-forge
    c-ares-1.34.3              |       hb9d3cd8_1         200 KB  conda-forge
    ca-certificates-2024.8.30  |       hbcca054_0         155 KB  conda-forge
    cairo-1.18.2               |       h3394656_1         956 KB  conda-forge
    curl-8.11.1                |       h332b0f4_0         171 KB  conda-forge
    font-ttf-dejavu-sans-mono-2.37|       hab24e00_0         388 KB  conda-forge
    font-ttf-inconsolata-3.000 |       h77eed37_0          94 KB  conda-forge
    font-ttf-source-code-pro-2.038|       h77eed37_0         684 KB  conda-forge
    font-ttf-ubuntu-0.83       |       h77eed37_3         1.5 MB  conda-forge
    fontconfig-2.15.0          |       h7e30c49_1         259 KB  conda-forge
    fonts-conda-ecosystem-1    |                0           4 KB  conda-forge
    fonts-conda-forge-1        |                0           4 KB  conda-forge
    freetype-2.12.1            |       h267a509_2         620 KB  conda-forge
    fribidi-1.0.10             |       h36c2ea0_0         112 KB  conda-forge
    gcc_impl_linux-64-14.2.0   |       h6b349bd_1        69.1 MB  conda-forge
    gfortran_impl_linux-64-14.2.0|       hc73f493_1        16.4 MB  conda-forge
    graphite2-1.3.13           |    h59595ed_1003          95 KB  conda-forge
    gsl-2.7                    |       he838d99_0         3.2 MB  conda-forge
    gxx_impl_linux-64-14.2.0   |       h2c03514_1        13.7 MB  conda-forge
    harfbuzz-9.0.0             |       hda332d3_1         1.5 MB  conda-forge
    icu-75.1                   |       he02047a_0        11.6 MB  conda-forge
    kernel-headers_linux-64-3.10.0|      he073ed8_18         921 KB  conda-forge
    keyutils-1.6.1             |       h166bdaf_0         115 KB  conda-forge
    krb5-1.21.3                |       h659f571_0         1.3 MB  conda-forge
    ld_impl_linux-64-2.43      |       h712a8e2_2         654 KB  conda-forge
    lerc-4.0.0                 |       h27087fc_0         275 KB  conda-forge
    libblas-3.9.0              |25_linux64_openblas          15 KB  conda-forge
    libcblas-3.9.0             |25_linux64_openblas          15 KB  conda-forge
    libcurl-8.11.1             |       h332b0f4_0         413 KB  conda-forge
    libdeflate-1.22            |       hb9d3cd8_0          71 KB  conda-forge
    libedit-3.1.20191231       |       he28a2e2_2         121 KB  conda-forge
    libev-4.33                 |       hd590300_2         110 KB  conda-forge
    libexpat-2.6.4             |       h5888daf_0          72 KB  conda-forge
    libffi-3.4.2               |       h7f98852_5          57 KB  conda-forge
    libgcc-14.2.0              |       h77fa898_1         829 KB  conda-forge
    libgcc-devel_linux-64-14.2.0|     h41c2201_101         2.6 MB  conda-forge
    libgcc-ng-14.2.0           |       h69a702a_1          53 KB  conda-forge
    libgfortran-14.2.0         |       h69a702a_1          53 KB  conda-forge
    libgfortran-ng-14.2.0      |       h69a702a_1          53 KB  conda-forge
    libgfortran5-14.2.0        |       hd5240d6_1         1.4 MB  conda-forge
    libglib-2.82.2             |       h2ff4ddf_0         3.7 MB  conda-forge
    libgomp-14.2.0             |       h77fa898_1         450 KB  conda-forge
    libiconv-1.17              |       hd590300_2         689 KB  conda-forge
    libjpeg-turbo-3.0.0        |       hd590300_1         604 KB  conda-forge
    liblapack-3.9.0            |25_linux64_openblas          15 KB  conda-forge
    liblzma-5.6.3              |       hb9d3cd8_1         109 KB  conda-forge
    liblzma-devel-5.6.3        |       hb9d3cd8_1         368 KB  conda-forge
    libnghttp2-1.64.0          |       h161d5f1_0         632 KB  conda-forge
    libnsl-2.0.1               |       hd590300_0          33 KB  conda-forge
    libopenblas-0.3.28         |pthreads_h94d23a6_1         5.3 MB  conda-forge
    libpng-1.6.44              |       hadc24fc_0         284 KB  conda-forge
    libsanitizer-14.2.0        |       h2a3dede_1         4.3 MB  conda-forge
    libsqlite-3.47.2           |       hee588c1_0         853 KB  conda-forge
    libssh2-1.11.1             |       hf672d98_0         297 KB  conda-forge
    libstdcxx-14.2.0           |       hc0a3c3a_1         3.7 MB  conda-forge
    libstdcxx-devel_linux-64-14.2.0|     h41c2201_101        12.9 MB  conda-forge
    libstdcxx-ng-14.2.0        |       h4852527_1          53 KB  conda-forge
    libtiff-4.7.0              |       hc4654cb_2         419 KB  conda-forge
    libuuid-2.38.1             |       h0b41bf4_0          33 KB  conda-forge
    libwebp-base-1.4.0         |       hd590300_0         429 KB  conda-forge
    libxcb-1.17.0              |       h8a09558_0         387 KB  conda-forge
    libxcrypt-4.4.36           |       hd590300_1          98 KB  conda-forge
    libzlib-1.3.1              |       hb9d3cd8_2          60 KB  conda-forge
    make-4.4.1                 |       hb9d3cd8_2         501 KB  conda-forge
    ncurses-6.5                |       he02047a_1         868 KB  conda-forge
    openssl-3.4.0              |       hb9d3cd8_0         2.8 MB  conda-forge
    pango-1.54.0               |       h3a902e7_3         437 KB  conda-forge
    pcre2-10.44                |       hba22ea6_2         930 KB  conda-forge
    pip-24.3.1                 |     pyh8b19718_0         1.2 MB  conda-forge
    pixman-0.44.2              |       h29eaf8c_0         372 KB  conda-forge
    pthread-stubs-0.4          |    hb9d3cd8_1002           8 KB  conda-forge
    python-3.10.15             |h4a871b0_2_cpython        24.1 MB  conda-forge
    r-4.4                      | r44hd8ed1ab_1008          18 KB  conda-forge
    r-base-4.4.2               |       h64c9cd0_0        25.8 MB  conda-forge
    r-boot-1.3_31              |    r44hc72bb7e_0         630 KB  conda-forge
    r-class-7.3_22             |    r44hb1dbf0f_2         107 KB  conda-forge
    r-cluster-2.1.7            |    r44hb67ce94_0         576 KB  conda-forge
    r-codetools-0.2_20         |    r44hc72bb7e_1         106 KB  conda-forge
    r-foreign-0.8_87           |    r44hb1dbf0f_1         263 KB  conda-forge
    r-kernsmooth-2.23_24       |    r44hc2011d3_1         100 KB  conda-forge
    r-lattice-0.22_6           |    r44hb1dbf0f_1         1.3 MB  conda-forge
    r-mass-7.3_60.0.1          |    r44hb1dbf0f_1         1.1 MB  conda-forge
    r-matrix-1.6_5             |    r44he966344_1         3.8 MB  conda-forge
    r-mgcv-1.9_1               |    r44h0d28552_1         3.1 MB  conda-forge
    r-nlme-3.1_165             |    r44hbcb9c34_1         2.2 MB  conda-forge
    r-nnet-7.3_19              |    r44hb1dbf0f_2         128 KB  conda-forge
    r-recommended-4.4          | r44hd8ed1ab_1007          18 KB  conda-forge
    r-rpart-4.1.23             |    r44hb1dbf0f_1         688 KB  conda-forge
    r-spatial-7.3_17           |    r44hb1dbf0f_1         152 KB  conda-forge
    r-survival-3.7_0           |    r44hdb488b9_1         6.0 MB  conda-forge
    readline-8.2               |       h8228510_1         275 KB  conda-forge
    sed-4.8                    |       he412f7d_0         264 KB  conda-forge
    setuptools-75.6.0          |     pyhff2d567_1         756 KB  conda-forge
    sysroot_linux-64-2.17      |      h4a8ded7_18        14.8 MB  conda-forge
    tk-8.6.13                  |noxft_h4845f30_101         3.2 MB  conda-forge
    tktable-2.10               |       h8bc8fbc_6          89 KB  conda-forge
    tzdata-2024b               |       hc8b5060_0         119 KB  conda-forge
    wheel-0.45.1               |     pyhd8ed1ab_1          61 KB  conda-forge
    xorg-libice-1.1.1          |       hb9d3cd8_1          57 KB  conda-forge
    xorg-libsm-1.2.4           |       he73a12e_1          27 KB  conda-forge
    xorg-libx11-1.8.10         |       h4f16b4b_1         818 KB  conda-forge
    xorg-libxau-1.0.11         |       hb9d3cd8_1          14 KB  conda-forge
    xorg-libxdmcp-1.1.5        |       hb9d3cd8_0          19 KB  conda-forge
    xorg-libxext-1.3.6         |       hb9d3cd8_0          49 KB  conda-forge
    xorg-libxrender-0.9.11     |       hb9d3cd8_2          37 KB  conda-forge
    xorg-libxt-1.3.1           |       hb9d3cd8_0         371 KB  conda-forge
    xz-5.6.3                   |       hbcc6ac9_1          23 KB  conda-forge
    xz-gpl-tools-5.6.3         |       hbcc6ac9_1          33 KB  conda-forge
    xz-tools-5.6.3             |       hb9d3cd8_1          88 KB  conda-forge
    zstd-1.5.6                 |       ha6fb4c9_0         542 KB  conda-forge
    ------------------------------------------------------------
                                           Total:       270.1 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge 
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-2_gnu 
  _r-mutex           conda-forge/noarch::_r-mutex-1.0.1-anacondar_1 
  binutils_impl_lin~ conda-forge/linux-64::binutils_impl_linux-64-2.43-h4bf12b8_2 
  bwidget            conda-forge/linux-64::bwidget-1.10.1-ha770c72_0 
  bzip2              conda-forge/linux-64::bzip2-1.0.8-h4bc722e_7 
  c-ares             conda-forge/linux-64::c-ares-1.34.3-hb9d3cd8_1 
  ca-certificates    conda-forge/linux-64::ca-certificates-2024.8.30-hbcca054_0 
  cairo              conda-forge/linux-64::cairo-1.18.2-h3394656_1 
  curl               conda-forge/linux-64::curl-8.11.1-h332b0f4_0 
  font-ttf-dejavu-s~ conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0 
  font-ttf-inconsol~ conda-forge/noarch::font-ttf-inconsolata-3.000-h77eed37_0 
  font-ttf-source-c~ conda-forge/noarch::font-ttf-source-code-pro-2.038-h77eed37_0 
  font-ttf-ubuntu    conda-forge/noarch::font-ttf-ubuntu-0.83-h77eed37_3 
  fontconfig         conda-forge/linux-64::fontconfig-2.15.0-h7e30c49_1 
  fonts-conda-ecosy~ conda-forge/noarch::fonts-conda-ecosystem-1-0 
  fonts-conda-forge  conda-forge/noarch::fonts-conda-forge-1-0 
  freetype           conda-forge/linux-64::freetype-2.12.1-h267a509_2 
  fribidi            conda-forge/linux-64::fribidi-1.0.10-h36c2ea0_0 
  gcc_impl_linux-64  conda-forge/linux-64::gcc_impl_linux-64-14.2.0-h6b349bd_1 
  gfortran_impl_lin~ conda-forge/linux-64::gfortran_impl_linux-64-14.2.0-hc73f493_1 
  graphite2          conda-forge/linux-64::graphite2-1.3.13-h59595ed_1003 
  gsl                conda-forge/linux-64::gsl-2.7-he838d99_0 
  gxx_impl_linux-64  conda-forge/linux-64::gxx_impl_linux-64-14.2.0-h2c03514_1 
  harfbuzz           conda-forge/linux-64::harfbuzz-9.0.0-hda332d3_1 
  icu                conda-forge/linux-64::icu-75.1-he02047a_0 
  kernel-headers_li~ conda-forge/noarch::kernel-headers_linux-64-3.10.0-he073ed8_18 
  keyutils           conda-forge/linux-64::keyutils-1.6.1-h166bdaf_0 
  krb5               conda-forge/linux-64::krb5-1.21.3-h659f571_0 
  ld_impl_linux-64   conda-forge/linux-64::ld_impl_linux-64-2.43-h712a8e2_2 
  lerc               conda-forge/linux-64::lerc-4.0.0-h27087fc_0 
  libblas            conda-forge/linux-64::libblas-3.9.0-25_linux64_openblas 
  libcblas           conda-forge/linux-64::libcblas-3.9.0-25_linux64_openblas 
  libcurl            conda-forge/linux-64::libcurl-8.11.1-h332b0f4_0 
  libdeflate         conda-forge/linux-64::libdeflate-1.22-hb9d3cd8_0 
  libedit            conda-forge/linux-64::libedit-3.1.20191231-he28a2e2_2 
  libev              conda-forge/linux-64::libev-4.33-hd590300_2 
  libexpat           conda-forge/linux-64::libexpat-2.6.4-h5888daf_0 
  libffi             conda-forge/linux-64::libffi-3.4.2-h7f98852_5 
  libgcc             conda-forge/linux-64::libgcc-14.2.0-h77fa898_1 
  libgcc-devel_linu~ conda-forge/noarch::libgcc-devel_linux-64-14.2.0-h41c2201_101 
  libgcc-ng          conda-forge/linux-64::libgcc-ng-14.2.0-h69a702a_1 
  libgfortran        conda-forge/linux-64::libgfortran-14.2.0-h69a702a_1 
  libgfortran-ng     conda-forge/linux-64::libgfortran-ng-14.2.0-h69a702a_1 
  libgfortran5       conda-forge/linux-64::libgfortran5-14.2.0-hd5240d6_1 
  libglib            conda-forge/linux-64::libglib-2.82.2-h2ff4ddf_0 
  libgomp            conda-forge/linux-64::libgomp-14.2.0-h77fa898_1 
  libiconv           conda-forge/linux-64::libiconv-1.17-hd590300_2 
  libjpeg-turbo      conda-forge/linux-64::libjpeg-turbo-3.0.0-hd590300_1 
  liblapack          conda-forge/linux-64::liblapack-3.9.0-25_linux64_openblas 
  liblzma            conda-forge/linux-64::liblzma-5.6.3-hb9d3cd8_1 
  liblzma-devel      conda-forge/linux-64::liblzma-devel-5.6.3-hb9d3cd8_1 
  libnghttp2         conda-forge/linux-64::libnghttp2-1.64.0-h161d5f1_0 
  libnsl             conda-forge/linux-64::libnsl-2.0.1-hd590300_0 
  libopenblas        conda-forge/linux-64::libopenblas-0.3.28-pthreads_h94d23a6_1 
  libpng             conda-forge/linux-64::libpng-1.6.44-hadc24fc_0 
  libsanitizer       conda-forge/linux-64::libsanitizer-14.2.0-h2a3dede_1 
  libsqlite          conda-forge/linux-64::libsqlite-3.47.2-hee588c1_0 
  libssh2            conda-forge/linux-64::libssh2-1.11.1-hf672d98_0 
  libstdcxx          conda-forge/linux-64::libstdcxx-14.2.0-hc0a3c3a_1 
  libstdcxx-devel_l~ conda-forge/noarch::libstdcxx-devel_linux-64-14.2.0-h41c2201_101 
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-14.2.0-h4852527_1 
  libtiff            conda-forge/linux-64::libtiff-4.7.0-hc4654cb_2 
  libuuid            conda-forge/linux-64::libuuid-2.38.1-h0b41bf4_0 
  libwebp-base       conda-forge/linux-64::libwebp-base-1.4.0-hd590300_0 
  libxcb             conda-forge/linux-64::libxcb-1.17.0-h8a09558_0 
  libxcrypt          conda-forge/linux-64::libxcrypt-4.4.36-hd590300_1 
  libzlib            conda-forge/linux-64::libzlib-1.3.1-hb9d3cd8_2 
  make               conda-forge/linux-64::make-4.4.1-hb9d3cd8_2 
  ncurses            conda-forge/linux-64::ncurses-6.5-he02047a_1 
  openssl            conda-forge/linux-64::openssl-3.4.0-hb9d3cd8_0 
  pango              conda-forge/linux-64::pango-1.54.0-h3a902e7_3 
  pcre2              conda-forge/linux-64::pcre2-10.44-hba22ea6_2 
  pip                conda-forge/noarch::pip-24.3.1-pyh8b19718_0 
  pixman             conda-forge/linux-64::pixman-0.44.2-h29eaf8c_0 
  pthread-stubs      conda-forge/linux-64::pthread-stubs-0.4-hb9d3cd8_1002 
  python             conda-forge/linux-64::python-3.10.15-h4a871b0_2_cpython 
  r                  conda-forge/noarch::r-4.4-r44hd8ed1ab_1008 
  r-base             conda-forge/linux-64::r-base-4.4.2-h64c9cd0_0 
  r-boot             conda-forge/noarch::r-boot-1.3_31-r44hc72bb7e_0 
  r-class            conda-forge/linux-64::r-class-7.3_22-r44hb1dbf0f_2 
  r-cluster          conda-forge/linux-64::r-cluster-2.1.7-r44hb67ce94_0 
  r-codetools        conda-forge/noarch::r-codetools-0.2_20-r44hc72bb7e_1 
  r-foreign          conda-forge/linux-64::r-foreign-0.8_87-r44hb1dbf0f_1 
  r-kernsmooth       conda-forge/linux-64::r-kernsmooth-2.23_24-r44hc2011d3_1 
  r-lattice          conda-forge/linux-64::r-lattice-0.22_6-r44hb1dbf0f_1 
  r-mass             conda-forge/linux-64::r-mass-7.3_60.0.1-r44hb1dbf0f_1 
  r-matrix           conda-forge/linux-64::r-matrix-1.6_5-r44he966344_1 
  r-mgcv             conda-forge/linux-64::r-mgcv-1.9_1-r44h0d28552_1 
  r-nlme             conda-forge/linux-64::r-nlme-3.1_165-r44hbcb9c34_1 
  r-nnet             conda-forge/linux-64::r-nnet-7.3_19-r44hb1dbf0f_2 
  r-recommended      conda-forge/noarch::r-recommended-4.4-r44hd8ed1ab_1007 
  r-rpart            conda-forge/linux-64::r-rpart-4.1.23-r44hb1dbf0f_1 
  r-spatial          conda-forge/linux-64::r-spatial-7.3_17-r44hb1dbf0f_1 
  r-survival         conda-forge/linux-64::r-survival-3.7_0-r44hdb488b9_1 
  readline           conda-forge/linux-64::readline-8.2-h8228510_1 
  sed                conda-forge/linux-64::sed-4.8-he412f7d_0 
  setuptools         conda-forge/noarch::setuptools-75.6.0-pyhff2d567_1 
  sysroot_linux-64   conda-forge/noarch::sysroot_linux-64-2.17-h4a8ded7_18 
  tk                 conda-forge/linux-64::tk-8.6.13-noxft_h4845f30_101 
  tktable            conda-forge/linux-64::tktable-2.10-h8bc8fbc_6 
  tzdata             conda-forge/noarch::tzdata-2024b-hc8b5060_0 
  wheel              conda-forge/noarch::wheel-0.45.1-pyhd8ed1ab_1 
  xorg-libice        conda-forge/linux-64::xorg-libice-1.1.1-hb9d3cd8_1 
  xorg-libsm         conda-forge/linux-64::xorg-libsm-1.2.4-he73a12e_1 
  xorg-libx11        conda-forge/linux-64::xorg-libx11-1.8.10-h4f16b4b_1 
  xorg-libxau        conda-forge/linux-64::xorg-libxau-1.0.11-hb9d3cd8_1 
  xorg-libxdmcp      conda-forge/linux-64::xorg-libxdmcp-1.1.5-hb9d3cd8_0 
  xorg-libxext       conda-forge/linux-64::xorg-libxext-1.3.6-hb9d3cd8_0 
  xorg-libxrender    conda-forge/linux-64::xorg-libxrender-0.9.11-hb9d3cd8_2 
  xorg-libxt         conda-forge/linux-64::xorg-libxt-1.3.1-hb9d3cd8_0 
  xz                 conda-forge/linux-64::xz-5.6.3-hbcc6ac9_1 
  xz-gpl-tools       conda-forge/linux-64::xz-gpl-tools-5.6.3-hbcc6ac9_1 
  xz-tools           conda-forge/linux-64::xz-tools-5.6.3-hb9d3cd8_1 
  zstd               conda-forge/linux-64::zstd-1.5.6-ha6fb4c9_0 


Proceed ([y]/n)? 
...
Preparing transaction: done                                                                                                                                                  
Verifying transaction: done                                                                                                                                                  
Executing transaction: done                                                                                                                                                  
#                                                                                                                                                                            
# To activate this environment, use                                                                                                                                          
#                                                                                                                                                                            
#     $ conda activate PY-3.10.15-R-4.4                                                                                                                                      
#                                                                                                                                                                            
# To deactivate an active environment, use                                                                                                                                   
#                                                                                                                                                                            
#     $ conda deactivate                                                                                                                  ```

> packages are stored in

alexlai@ApiServer:~$ ls /anaconda3/envs/
PY-3.10.15-R-4.4
alexlai@ApiServer:
$ ls /anaconda3/envs/PY-3.10.15-R-4.4/ bin compiler_compat conda-meta etc fonts include lib libexec man sbin share ssl var x86_64-conda_cos6-linux-gnu x86_64-conda-linux-gnu
alexlai@ApiServer:
$


>Activate

alexlai@ApiServer:$ echo $PATH
/home/alexlai/anaconda3/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
alexlai@ApiServer:
$ conda activate PY-3.10.15-R-4.4

CondaError: Run 'conda init' before 'conda activate'

alexlai@ApiServer:~$ diff ~/.bashrc.backup ~/.bashrc

alexlai@ApiServer:~$ conda init
no change /home/alexlai/anaconda3/condabin/conda
no change /home/alexlai/anaconda3/bin/conda
no change /home/alexlai/anaconda3/bin/conda-env
no change /home/alexlai/anaconda3/bin/activate no change /home/alexlai/anaconda3/bin/deactivate no change /home/alexlai/anaconda3/etc/profile.d/conda.sh no change /home/alexlai/anaconda3/etc/fish/conf.d/conda.fish no change /home/alexlai/anaconda3/shell/condabin/Conda.psm1 no change /home/alexlai/anaconda3/shell/condabin/conda-hook.ps1 no change /home/alexlai/anaconda3/lib/python3.12/site-packages/xontrib/conda.xsh no change /home/alexlai/anaconda3/etc/profile.d/conda.csh modified /home/alexlai/.bashrc

==> For changes to take effect, close and re-open your current shell. <==

alexlai@ApiServer:~$ diff ~/.bashrc.backup ~/.bashrc 117a118,133

>>> conda initialize >>>

!! Contents within this block are managed by 'conda init' !!

__conda_setup="$('/home/alexlai/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/home/alexlai/anaconda3/etc/profile.d/conda.sh" ]; then . "/home/alexlai/anaconda3/etc/profile.d/conda.sh" else export PATH="/home/alexlai/anaconda3/bin:$PATH" fi fi unset __conda_setup

<<< conda initialize <<<

> relogin

(base) alexlai@ApiServer:~$ echo $PATH /home/alexlai/anaconda3/bin:/home/alexlai/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

(base) alexlai@ApiServer:$ ls /home/alexlai/anaconda3/etc/profile.d/conda.sh /home/alexlai/anaconda3/etc/profile.d/conda.sh (base) alexlai@ApiServer:$ less /home/alexlai/anaconda3/etc/profile.d/conda.sh (base) alexlai@ApiServer:~$ conda activate PY-3.10.15-R-4.4

(PY-3.10.15-R-4.4) alexlai@ApiServer:$ which python /home/alexlai/anaconda3/envs/PY-3.10.15-R-4.4/bin/python (PY-3.10.15-R-4.4) alexlai@ApiServer:$ which pip /home/alexlai/anaconda3/envs/PY-3.10.15-R-4.4/bin/pip (PY-3.10.15-R-4.4) alexlai@ApiServer:$ which pip3 /home/alexlai/anaconda3/envs/PY-3.10.15-R-4.4/bin/pip3 (PY-3.10.15-R-4.4) alexlai@ApiServer:$ which R /home/alexlai/anaconda3/envs/PY-3.10.15-R-4.4/bin/R