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

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

  • 原先的python版本

在这里插入图片描述

  • 第一步:
conda update --all
(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.

  • 第二步:
conda install python=3.11
(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升级成功!!!

相关推荐

  1. 自动化升级Conda依赖智能更新策略

    2024-07-11 04:52:06       21 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-11 04:52:06       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-11 04:52:06       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-11 04:52:06       57 阅读
  4. Python语言-面向对象

    2024-07-11 04:52:06       68 阅读

热门阅读

  1. uniapp小程序使用webview 嵌套 vue 项目

    2024-07-11 04:52:06       24 阅读
  2. iOS 开发中,异步渲染和异步绘制

    2024-07-11 04:52:06       19 阅读
  3. 请求被中止: 未能创建 SSL/TLS 安全通道

    2024-07-11 04:52:06       22 阅读
  4. 【LeetCode】字母异位词分组

    2024-07-11 04:52:06       21 阅读
  5. mybatis-plus树递归结构

    2024-07-11 04:52:06       22 阅读
  6. 一次业务的批量数据任务的处理优化

    2024-07-11 04:52:06       18 阅读
  7. 力扣之有序链表去重

    2024-07-11 04:52:06       25 阅读
  8. PyTorch DataLoader 学习

    2024-07-11 04:52:06       18 阅读
  9. 微生活服务平台与元宇宙的融合

    2024-07-11 04:52:06       20 阅读
  10. C++ 入门05:类和对象

    2024-07-11 04:52:06       27 阅读
  11. mysqli 与mysql 区别和联系, 举例说明

    2024-07-11 04:52:06       24 阅读
  12. SQL Server镜像与日志:数据保护的双重保障

    2024-07-11 04:52:06       19 阅读
  13. 系统设计题-路由表最长匹配

    2024-07-11 04:52:06       22 阅读
  14. springboot+vue项目实战2024第三集修改用户信息

    2024-07-11 04:52:06       26 阅读