ZhangZhihui's Blog  

Download the installation file:

 

Install:

zzh@ZZHPC:/zdata/software$ chmod a+x Anaconda3-2024.10-1-Linux-x86_64.sh
zzh@ZZHPC:/zdata/software$ ./zzh@ZZHPC:/zdata/software$

 

复制代码
......
Downloading and Extracting Packages:

Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
   run the following command when conda is activated:

conda config --set auto_activate_base false

You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes
no change     /zdata/anaconda3/condabin/conda
no change     /zdata/anaconda3/bin/conda
no change     /zdata/anaconda3/bin/conda-env
no change     /zdata/anaconda3/bin/activate
no change     /zdata/anaconda3/bin/deactivate
no change     /zdata/anaconda3/etc/profile.d/conda.sh
no change     /zdata/anaconda3/etc/fish/conf.d/conda.fish
no change     /zdata/anaconda3/shell/condabin/Conda.psm1
no change     /zdata/anaconda3/shell/condabin/conda-hook.ps1
no change     /zdata/anaconda3/lib/python3.12/site-packages/xontrib/conda.xsh
no change     /zdata/anaconda3/etc/profile.d/conda.csh
modified      /home/zzh/.bashrc

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

Thank you for installing Anaconda3!
复制代码

 

复制代码
(base) zzh@ZZHPC:~$ conda install pydotplus
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /zdata/anaconda3

  added / updated specs:
    - pydotplus


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    atk-1.0-2.36.0             |       ha1a6a79_0         466 KB
    ca-certificates-2024.12.31 |       h06a4308_0         128 KB
    cairo-1.16.0               |       hb05425b_5         1.2 MB
    certifi-2024.12.14         |  py312h06a4308_0         161 KB
    conda-24.11.3              |  py312h06a4308_0         1.1 MB
    font-ttf-dejavu-sans-mono-2.37|       hd3eb1b0_0         335 KB
    font-ttf-inconsolata-2.001 |       hcb22688_0          83 KB
    font-ttf-source-code-pro-2.030|       hd3eb1b0_0         654 KB
    font-ttf-ubuntu-0.83       |       h8b1ccd4_0         1.5 MB
    fonts-anaconda-1           |       h8fa9717_0           3 KB
    fonts-conda-ecosystem-1    |       hd3eb1b0_0           5 KB
    fribidi-1.0.10             |       h7b6447c_0         103 KB
    gdk-pixbuf-2.42.10         |       h5eee18b_1         602 KB
    gobject-introspection-1.78.1|  py312h42194e9_1         1.7 MB
    graphite2-1.3.14           |       h295c915_1          97 KB
    graphviz-2.50.0            |       h78213b7_2         2.6 MB
    gtk2-2.24.33               |       h73c1081_2         3.3 MB
    gts-0.7.6                  |       hb67d8dd_3         310 KB
    harfbuzz-4.3.0             |       hf52aaf7_2         1.3 MB
    libgd-2.3.3                |       h695aa2c_1         222 KB
    librsvg-2.54.4             |       h36cc946_3         6.0 MB
    libtool-2.4.6              |    h6a678d5_1009         421 KB
    libwebp-1.3.2              |       h11a3e52_0          87 KB
    ninja-1.12.1               |       h06a4308_0           8 KB
    ninja-base-1.12.1          |       hdb19cb5_0         157 KB
    pango-1.50.7               |       h05da053_0         427 KB
    pixman-0.40.0              |       h7f8727e_1         373 KB
    poppler-24.09.0            |       h55ad6a6_0        20.0 MB
    poppler-data-0.4.11        |       h06a4308_1         2.6 MB
    pydotplus-2.0.2            |             py_3          23 KB
    ------------------------------------------------------------
                                           Total:        45.7 MB

The following NEW packages will be INSTALLED:

  atk-1.0            pkgs/main/linux-64::atk-1.0-2.36.0-ha1a6a79_0 
  cairo              pkgs/main/linux-64::cairo-1.16.0-hb05425b_5 
  font-ttf-dejavu-s~ pkgs/main/noarch::font-ttf-dejavu-sans-mono-2.37-hd3eb1b0_0 
  font-ttf-inconsol~ pkgs/main/noarch::font-ttf-inconsolata-2.001-hcb22688_0 
  font-ttf-source-c~ pkgs/main/noarch::font-ttf-source-code-pro-2.030-hd3eb1b0_0 
  font-ttf-ubuntu    pkgs/main/noarch::font-ttf-ubuntu-0.83-h8b1ccd4_0 
  fonts-anaconda     pkgs/main/noarch::fonts-anaconda-1-h8fa9717_0 
  fonts-conda-ecosy~ pkgs/main/noarch::fonts-conda-ecosystem-1-hd3eb1b0_0 
  fribidi            pkgs/main/linux-64::fribidi-1.0.10-h7b6447c_0 
  gdk-pixbuf         pkgs/main/linux-64::gdk-pixbuf-2.42.10-h5eee18b_1 
  gobject-introspec~ pkgs/main/linux-64::gobject-introspection-1.78.1-py312h42194e9_1 
  graphite2          pkgs/main/linux-64::graphite2-1.3.14-h295c915_1 
  graphviz           pkgs/main/linux-64::graphviz-2.50.0-h78213b7_2 
  gtk2               pkgs/main/linux-64::gtk2-2.24.33-h73c1081_2 
  gts                pkgs/main/linux-64::gts-0.7.6-hb67d8dd_3 
  harfbuzz           pkgs/main/linux-64::harfbuzz-4.3.0-hf52aaf7_2 
  libgd              pkgs/main/linux-64::libgd-2.3.3-h695aa2c_1 
  librsvg            pkgs/main/linux-64::librsvg-2.54.4-h36cc946_3 
  libtool            pkgs/main/linux-64::libtool-2.4.6-h6a678d5_1009 
  libwebp            pkgs/main/linux-64::libwebp-1.3.2-h11a3e52_0 
  ninja              pkgs/main/linux-64::ninja-1.12.1-h06a4308_0 
  ninja-base         pkgs/main/linux-64::ninja-base-1.12.1-hdb19cb5_0 
  pango              pkgs/main/linux-64::pango-1.50.7-h05da053_0 
  pixman             pkgs/main/linux-64::pixman-0.40.0-h7f8727e_1 
  poppler            pkgs/main/linux-64::poppler-24.09.0-h55ad6a6_0 
  poppler-data       pkgs/main/linux-64::poppler-data-0.4.11-h06a4308_1 
  pydotplus          pkgs/main/noarch::pydotplus-2.0.2-py_3 

The following packages will be UPDATED:

  ca-certificates                      2024.9.24-h06a4308_0 --> 2024.12.31-h06a4308_0 
  certifi                         2024.8.30-py312h06a4308_0 --> 2024.12.14-py312h06a4308_0 
  conda                              24.9.2-py312h06a4308_0 --> 24.11.3-py312h06a4308_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                                                                     
Preparing transaction: done                                                                                                                                          
Verifying transaction: done                                                                                                                                          
Executing transaction: done
复制代码

 

Starting from TensorFlow 2.0, tensorflow includes GPU support by default. The tensorflow-gpu package is now deprecated and no longer maintained.

复制代码
(base) zzh@ZZHPC:~$ conda install tensorflow                                                                                                                         
Channels:                                                                                                                                                            
 - defaults                                                                                                                                                          
Platform: linux-64                                                                                                                                                   
Collecting package metadata (repodata.json): done                                                                                                                    
Solving environment: done                                                                                                                                            
                                                                                                                                                                     
## Package Plan ##                                                                                                                                                   
                                                                                                                                                                     
  environment location: /zdata/anaconda3                                                                                                                             
                                                                                                                                                                     
  added / updated specs:                                                                                                                                             
    - tensorflow                                                                                                                                                     
                                                                                                                                                                     
                                                                                                                                                                     
The following packages will be downloaded:                                                                                                                           
                                                                                                                                                                     
    package                    |            build                                                                                                                    
    ---------------------------|-----------------                                                                                                                    
    absl-py-2.1.0              |  py312h06a4308_0         239 KB                                                                                                     
    astunparse-1.6.3           |             py_0          17 KB                                                                                                     
    cuda-crt-tools-12.4.131    |       h06a4308_0          25 KB                                                                                                     
    cuda-cudart-12.4.127       |       h99ab3db_0          21 KB                                                                                                     
    cuda-cudart_linux-64-12.4.127|       hd681fbe_0         207 KB                                                                                                   
    cuda-cupti-12.4.127        |       h6a678d5_1         2.0 MB                                                                                                     
    cuda-nvcc-tools-12.4.131   |       h99ab3db_0        24.9 MB                                                                                                     
    cuda-nvrtc-12.4.127        |       h99ab3db_1        19.8 MB
    cuda-nvtx-12.4.127         |       h6a678d5_1          30 KB
    cuda-nvvm-tools-12.4.131   |       h6a678d5_0        12.4 MB
    cuda-version-12.4          |       hbda6634_3          19 KB
    cudnn-9.1.1.17             |         cuda12_1       477.5 MB
    flatbuffers-24.3.25        |       h6a678d5_0         1.7 MB
    gast-0.5.3                 |     pyhd3eb1b0_0          21 KB
    giflib-5.2.2               |       h5eee18b_0          80 KB
    google-pasta-0.2.0         |     pyhd3eb1b0_0          46 KB
    grpcio-1.62.2              |  py312h6a678d5_0         1.1 MB
    keras-3.6.0                |  py312h06a4308_0         2.9 MB
    libcublas-12.4.5.8         |       h99ab3db_1       247.6 MB
    libcufft-11.2.1.3          |       h99ab3db_1       174.5 MB
    libcurand-10.3.5.147       |       h99ab3db_1        42.4 MB
    libcusolver-11.6.1.9       |       h99ab3db_1        83.5 MB
    libcusparse-12.3.1.170     |       h99ab3db_1       120.0 MB
    libnvjitlink-12.4.127      |       h99ab3db_1        17.4 MB
    ml_dtypes-0.4.0            |  py312h526ad5a_0         173 KB
    namex-0.0.7                |  py312h06a4308_0          15 KB
    nccl-2.21.5.1              |       ha515578_0       126.1 MB
    opt_einsum-3.3.0           |     pyhd3eb1b0_1          57 KB
    optree-0.12.1              |  py312hdb19cb5_0         326 KB
    python-flatbuffers-24.3.25 |  py312h06a4308_0          71 KB
    tensorboard-2.17.0         |  py312h06a4308_0         5.6 MB
    tensorboard-data-server-0.7.0|  py312h52d8a92_1         4.2 MB
    tensorflow-2.17.0          |cuda124py312ha1f05a4_200          33 KB
    tensorflow-base-2.17.0     |cuda124py312hfc7ff22_200       361.9 MB
    tensorflow-estimator-2.17.0|cuda124py312he5efd2c_200         662 KB
    termcolor-2.1.0            |  py312h06a4308_0          12 KB
    ------------------------------------------------------------
                                           Total:        1.69 GB

The following NEW packages will be INSTALLED:

  absl-py            pkgs/main/linux-64::absl-py-2.1.0-py312h06a4308_0 
  astunparse         pkgs/main/noarch::astunparse-1.6.3-py_0 
  cuda-crt-tools     pkgs/main/linux-64::cuda-crt-tools-12.4.131-h06a4308_0 
  cuda-cudart        pkgs/main/linux-64::cuda-cudart-12.4.127-h99ab3db_0 
  cuda-cudart_linux~ pkgs/main/noarch::cuda-cudart_linux-64-12.4.127-hd681fbe_0 
  cuda-cupti         pkgs/main/linux-64::cuda-cupti-12.4.127-h6a678d5_1 
  cuda-nvcc-tools    pkgs/main/linux-64::cuda-nvcc-tools-12.4.131-h99ab3db_0 
  cuda-nvrtc         pkgs/main/linux-64::cuda-nvrtc-12.4.127-h99ab3db_1 
  cuda-nvtx          pkgs/main/linux-64::cuda-nvtx-12.4.127-h6a678d5_1 
  cuda-nvvm-tools    pkgs/main/linux-64::cuda-nvvm-tools-12.4.131-h6a678d5_0 
  cuda-version       pkgs/main/noarch::cuda-version-12.4-hbda6634_3 
  cudnn              pkgs/main/linux-64::cudnn-9.1.1.17-cuda12_1 
  flatbuffers        pkgs/main/linux-64::flatbuffers-24.3.25-h6a678d5_0 
  gast               pkgs/main/noarch::gast-0.5.3-pyhd3eb1b0_0 
  google-pasta       pkgs/main/noarch::google-pasta-0.2.0-pyhd3eb1b0_0 
  grpcio             pkgs/main/linux-64::grpcio-1.62.2-py312h6a678d5_0 
  keras              pkgs/main/linux-64::keras-3.6.0-py312h06a4308_0 
  libcublas          pkgs/main/linux-64::libcublas-12.4.5.8-h99ab3db_1 
  libcufft           pkgs/main/linux-64::libcufft-11.2.1.3-h99ab3db_1 
  libcurand          pkgs/main/linux-64::libcurand-10.3.5.147-h99ab3db_1 
  libcusolver        pkgs/main/linux-64::libcusolver-11.6.1.9-h99ab3db_1 
  libcusparse        pkgs/main/linux-64::libcusparse-12.3.1.170-h99ab3db_1 
  libnvjitlink       pkgs/main/linux-64::libnvjitlink-12.4.127-h99ab3db_1 
  ml_dtypes          pkgs/main/linux-64::ml_dtypes-0.4.0-py312h526ad5a_0 
  namex              pkgs/main/linux-64::namex-0.0.7-py312h06a4308_0 
  nccl               pkgs/main/linux-64::nccl-2.21.5.1-ha515578_0 
  opt_einsum         pkgs/main/noarch::opt_einsum-3.3.0-pyhd3eb1b0_1 
  optree             pkgs/main/linux-64::optree-0.12.1-py312hdb19cb5_0 
  python-flatbuffers pkgs/main/linux-64::python-flatbuffers-24.3.25-py312h06a4308_0 
  tensorboard        pkgs/main/linux-64::tensorboard-2.17.0-py312h06a4308_0 
  tensorboard-data-~ pkgs/main/linux-64::tensorboard-data-server-0.7.0-py312h52d8a92_1 
  tensorflow         pkgs/main/linux-64::tensorflow-2.17.0-cuda124py312ha1f05a4_200 
  tensorflow-base    pkgs/main/linux-64::tensorflow-base-2.17.0-cuda124py312hfc7ff22_200 
  tensorflow-estima~ pkgs/main/linux-64::tensorflow-estimator-2.17.0-cuda124py312he5efd2c_200 
  termcolor          pkgs/main/linux-64::termcolor-2.1.0-py312h06a4308_0 

The following packages will be UPDATED:

  giflib                                   5.2.1-h5eee18b_3 --> 5.2.2-h5eee18b_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                                                                     
Preparing transaction: done                                                                                                                                          
Verifying transaction: done                                                                                                                                          
Executing transaction: done
复制代码

 

复制代码
(base) zzh@ZZHPC:~$ conda install xgboost
Retrieving notices: done
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): \ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectionResetError(104, 'Connection reset by peer')': /pkgs/main/noarch/repodata.json.zst

done
Solving environment: done

## Package Plan ##

  environment location: /zdata/anaconda3

  added / updated specs:
    - xgboost


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _py-xgboost-mutex-2.0      |            cpu_0           9 KB
    libxgboost-2.1.1           |       h6a678d5_0         3.6 MB
    py-xgboost-2.1.1           |  py312h06a4308_0         370 KB
    xgboost-2.1.1              |  py312h06a4308_0          11 KB
    ------------------------------------------------------------
                                           Total:         4.0 MB

The following NEW packages will be INSTALLED:

  _py-xgboost-mutex  pkgs/main/linux-64::_py-xgboost-mutex-2.0-cpu_0 
  libxgboost         pkgs/main/linux-64::libxgboost-2.1.1-h6a678d5_0 
  py-xgboost         pkgs/main/linux-64::py-xgboost-2.1.1-py312h06a4308_0 
  xgboost            pkgs/main/linux-64::xgboost-2.1.1-py312h06a4308_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                                                                     
Preparing transaction: done                                                                                                                                          
Verifying transaction: done                                                                                                                                          
Executing transaction: done
复制代码

 

复制代码
(base) zzh@ZZHPC:~$ conda install pyspark
Retrieving notices: done
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /zdata/anaconda3

  added / updated specs:
    - pyspark


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    py4j-0.10.9.7              |  py312h06a4308_0         288 KB
    pyspark-3.5.3              |  py312h06a4308_0       299.7 MB
    ------------------------------------------------------------
                                           Total:       299.9 MB

The following NEW packages will be INSTALLED:

  py4j               pkgs/main/linux-64::py4j-0.10.9.7-py312h06a4308_0 
  pyspark            pkgs/main/linux-64::pyspark-3.5.3-py312h06a4308_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                                                                     
Preparing transaction: done                                                                                                                                          
Verifying transaction: done
Executing transaction: done
复制代码

 

Uninstall: https://docs.anaconda.com/anaconda/install/uninstall/

(base)zzh@ZZHPC:~/zdata$ conda init --reverse bash

zzh@ZZHPC:/zdata$ rm -rf anaconda3

zzh@ZZHPC:~$ rm -rf .conda

zzh@ZZHPC:~/.cache$ rm -rf conda

 

posted on   ZhangZhihuiAAA  阅读(75)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2023-09-27 Go - 这个for循环是怎么退出的
2023-09-27 Go - ERROR: fatal error: all goroutines are asleep - deadlock!
 
点击右上角即可分享
微信分享提示