conda篇----在已有conda环境的基础上升级python包

conda篇----在已有conda环境的基础上升级python包

  • 原先的python版本
  • 第一步:
python 复制代码
conda update --all
python 复制代码
(py11) [xxx@aivrs01 xxx]$ conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.10.1
  latest version: 24.5.0

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /home/slifeai/.conda/envs/py11


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    openssl-1.1.1w             |       h7f8727e_0         3.7 MB
    python-3.7.16              |       h7a1cb2a_0        44.8 MB
    ------------------------------------------------------------
                                           Total:        48.6 MB

The following packages will be UPDATED:

  _openmp_mutex                                   4.5-1_gnu --> 5.1-1_gnu
  ca-certificates                       2021.7.5-h06a4308_1 --> 2024.3.11-h06a4308_0
  ld_impl_linux-64                        2.35.1-h7274673_9 --> 2.38-h1181459_1
  libffi                                     3.3-he6710b0_2 --> 3.4.4-h6a678d5_1
  libgcc-ng                               9.3.0-h5101ec6_17 --> 11.2.0-h1234567_1
  libgomp                                 9.3.0-h5101ec6_17 --> 11.2.0-h1234567_1
  libstdcxx-ng                            9.3.0-hd4cf53a_17 --> 11.2.0-h1234567_1
  ncurses                                    6.2-he6710b0_1 --> 6.4-h6a678d5_0
  openssl                                 1.1.1k-h27cfd23_0 --> 1.1.1w-h7f8727e_0
  python                                  3.7.10-h12debd9_4 --> 3.7.16-h7a1cb2a_0
  readline                                   8.1-h27cfd23_0 --> 8.2-h5eee18b_0
  sqlite                                  3.36.0-hc218d9a_0 --> 3.45.3-h5eee18b_0
  tk                                      8.6.10-hbc83047_0 --> 8.6.14-h39e8969_0
  wheel                                 0.36.2-pyhd3eb1b0_0 --> 0.37.1-pyhd3eb1b0_0
  xz                                       5.2.5-h7b6447c_0 --> 5.4.6-h5eee18b_1
  zlib                                    1.2.11-h7b6447c_3 --> 1.2.13-h5eee18b_1


Proceed ([y]/n)? y


Downloading and Extracting Packages
openssl-1.1.1w       | 3.7 MB    | ################################################################################## | 100% 
python-3.7.16        | 44.8 MB   | ################################################################################## | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(py11) [slifeai@aivrs01 Agent_Email_Generate]$ conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.10.1
  latest version: 24.5.0

Please update conda by running

    $ conda update -n base -c defaults conda



# All requested packages already installed.
  • 第二步:
python 复制代码
conda install python=3.11
python 复制代码
(py11) [xxx@aivrs01 xxx]$$ conda install python=3.11
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.10.1
  latest version: 24.5.0

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /home/slifeai/.conda/envs/py11

  added / updated specs:
    - python=3.11


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2024.7.4           |  py311h06a4308_0         159 KB
    openssl-3.0.14             |       h5eee18b_0         5.2 MB
    pip-24.0                   |  py311h06a4308_0         3.3 MB
    python-3.11.9              |       h955ad1f_0        32.9 MB
    setuptools-69.5.1          |  py311h06a4308_0         1.3 MB
    ------------------------------------------------------------
                                           Total:        42.9 MB

The following NEW packages will be INSTALLED:

  bzip2              pkgs/main/linux-64::bzip2-1.0.8-h5eee18b_6
  libuuid            pkgs/main/linux-64::libuuid-1.41.5-h5eee18b_0
  tzdata             pkgs/main/noarch::tzdata-2024a-h04d1e81_0

The following packages will be UPDATED:

  certifi                          2021.5.30-py37h06a4308_0 --> 2024.7.4-py311h06a4308_0
  openssl                                 1.1.1w-h7f8727e_0 --> 3.0.14-h5eee18b_0
  pip                                 21.1.3-py37h06a4308_0 --> 24.0-py311h06a4308_0
  python                                  3.7.16-h7a1cb2a_0 --> 3.11.9-h955ad1f_0
  setuptools                          52.0.0-py37h06a4308_0 --> 69.5.1-py311h06a4308_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
python-3.11.9        | 32.9 MB   | ################################################################################## | 100% 
certifi-2024.7.4     | 159 KB    | ################################################################################## | 100% 
pip-24.0             | 3.3 MB    | ################################################################################## | 100% 
openssl-3.0.14       | 5.2 MB    | ################################################################################## | 100% 
setuptools-69.5.1    | 1.3 MB    | ################################################################################## | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
  • 验证

    python升级成功!!!
相关推荐
这个男人是小帅29 分钟前
【GAT】 代码详解 (1) 运行方法【pytorch】可运行版本
人工智能·pytorch·python·深度学习·分类
小白学大数据4 小时前
Python爬虫开发中的分析与方案制定
开发语言·c++·爬虫·python
Shy9604184 小时前
Doc2Vec句子向量
python·语言模型
秀儿还能再秀7 小时前
机器学习——简单线性回归、逻辑回归
笔记·python·学习·机器学习
阿_旭8 小时前
如何使用OpenCV和Python进行相机校准
python·opencv·相机校准·畸变校准
幸运的星竹8 小时前
使用pytest+openpyxl做接口自动化遇到的问题
python·自动化·pytest
白总Server9 小时前
JVM解说
网络·jvm·物联网·安全·web安全·架构·数据库架构
向阳12189 小时前
JVM 进阶:深入理解与高级调优
java·jvm
用屁屁笑9 小时前
Java:JVM
java·开发语言·jvm