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升级成功!!!
相关推荐
傻啦嘿哟15 分钟前
Python爬虫动态IP代理报错全解析:从问题定位到实战优化
爬虫·python·tcp/ip
mit6.82417 分钟前
[Meetily后端框架] Whisper转录服务器 | 后端服务管理脚本
c++·人工智能·后端·python
探索java18 分钟前
Java 深入解析:JVM对象创建与内存机制全景图
java·jvm
zhangfeng113319 分钟前
python 数据分析 单细胞测序数据分析 相关的图表,常见于肿瘤免疫微环境、细胞亚群功能研究 ,各图表类型及逻辑关系如下
开发语言·python·数据分析·医学
柠檬豆腐脑38 分钟前
Trae-Agent 内置工具深度解析
python·llm·agent
ydl11281 小时前
机器学习基础知识【 激活函数、损失函数、优化器、 正则化、调度器、指标函数】
python·机器学习
chao_7892 小时前
CSS表达式——下篇【selenium】
css·python·selenium·算法
倔强青铜三2 小时前
苦练Python第10天:for 循环与 range() 函数
人工智能·python·面试
5172 小时前
django中如何使用Django REST Framework
后端·python·django
程序员的世界你不懂3 小时前
(20)Java+Playwright自动化测试- 操作鼠标拖拽 - 上篇
java·python·计算机外设