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升级成功!!!
相关推荐
leisoo80974 小时前
100GBA股股票数据怎么存ClickHouseRedisMySQLJSON完整对比
大数据·linux·服务器·开发语言·python
WangYan20224 小时前
基于XGBoost与AI的生态—地学多源数据建模:植被与土地利用识别、土壤碳氮空间预测、生物多样性驱动机制、土壤微生物功能预测、生态退化与风险识别
python·机器学习·xgboost
金銀銅鐵6 小时前
[Python] 借助 turtle 逐字展示唐诗《金缕衣》
python
Python大数据分析@8 小时前
使用大模型MCP采集数据,爬虫已经无门槛
python·网络爬虫
quantdash_cc9 小时前
告别自建 Requests/BS4 网页爬虫:基于 QuantDash 搭建零维保的高性能量化行情流水线
开发语言·爬虫·python·pandas·量化·quantdash
65岁退休Coder9 小时前
LangChain v1.3.4 笔记 - 07 补充:链式调用 LCEL
后端·python·langchain
卷无止境9 小时前
FastAPI 部署在 Nginx 后面到底该怎么配
后端·python
半亩码田9 小时前
C#转Python第3.1篇:Python 的 class 没有访问修饰符?面向对象的另一条路
开发语言·python·c#
Wzx19801210 小时前
python沙箱和docker沙箱你选对了吗?
开发语言·python·docker
Python私教10 小时前
签名 URL 刷新导致审批失效?别急着删掉所有 query
python·安全