conda篇----在已有conda环境的基础上升级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
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 |
python-3.7.16 | 44.8 MB |
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
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
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 |
certifi-2024.7.4 | 159 KB |
pip-24.0 | 3.3 MB |
openssl-3.0.14 | 5.2 MB |
setuptools-69.5.1 | 1.3 MB |
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
- 验证
python升级成功!!!